Professional Documents
Culture Documents
Can't Connect To FB Database PDF
Can't Connect To FB Database PDF
« previous next »
Can not load default Firebird Clients ("LIBFbClient.so.2.5.1" or "LibGDS.so" or "LibFEmbed.so.2.5") Check your
installation.
It says it is looking for 2.5.1 and I have 2.5.6 of the libfbclient but it still should should find the libgds.
The problem seems to be at the "LIBFbClient.so.2.5.1" file. Did you tryed to install Firebird 2.5.1? It is possible on
Ubuntu. If it works then you have your answer.
Logged
Are you interested in game programming? Join the Pascal Game Development community!
Posts: 908
Also visit the Game Development Portal
https://forum.lazarus.freepascal.org/index.php?topic=33333.0 1/6
28/8/2019 Can't connect to FB database
First of all the libfbclient.2.5.1 is an old one. So the source needs to be adjusted to also take 2.5.6.
Posts: 3789 Second... the libgds.so should have been loaded but isn't.
Code: [Select]
ln -s /opt/firebird/lib/libfbclient.so.2.5.6 /usr/lib/libfbclient.so.2.5.1
(this creates a symlink named libfbclient.so.2.5.1 which fpc still uses to the new libfbclient.so.2.5.6)
Logged
Maybe someday the code can be straightened out but for now this seems to work.
Also: I had to put sudo on the start of the command line for the permissions to let it work.
« Last Edit: July 13, 2016, 05:27:19 pm by terry6 » Logged
(...)
Posts: 908 I found out the libraries in /usr/lib64 are NOT used.
https://forum.lazarus.freepascal.org/index.php?topic=33333.0 2/6
28/8/2019 Can't connect to FB database
Code: [Select]
ln -s /opt/firebird/lib/libfbclient.so.2.5.6 /usr/lib/libfbclient.so.2.5.1
(this creates a symlink named libfbclient.so.2.5.1 which fpc still uses to the new libfbclient.so.2.5.6)
That's not a good idea: You're mixing 64bit and 32bit stuff. That's not good. And it should not work, unless libfbclient
wasn't installed correctly.
[edit]
I've read again and I've realized that you are not mixing 64bit and 32bit: the problem is that the Firebird client isn't
installed correctly. It should be at /usr/lib/, not at /opt/firebird/lib/. Actually I don't know why it is at /opt ???
I didn't try Firebird in Ubuntu yet, but when I used it with Fedora it installed correctly.
« Last Edit: July 13, 2016, 07:00:33 pm by Ñuño_Martínez » Logged
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal
(...)
Posts: 3789 Code: [Select]
ln -s /opt/firebird/lib/libfbclient.so.2.5.6 /usr/lib/libfbclient.so.2.5.1
(this creates a symlink named libfbclient.so.2.5.1 which fpc still uses to the new libfbclient.so.2.5.6)
That's not a good idea: You're mixing 64bit and 32bit stuff. That's not good. And it should not work, unless libfbclient wasn't installed correctly.
Although I agree it would be better to separate 32bit and 64bit libraries it seems this is not always done and the /usr/lib
is also used for 64bit libraries.
https://forum.lazarus.freepascal.org/index.php?topic=33333.0 3/6
28/8/2019 Can't connect to FB database
Edit: I though the libraries are always in /opt/firebird/lib/ and Firebird symlinked them to /usr/lib. (but in this case it was
to /usr/lib64 for some reason)
PS. I used the tarball and used the install.sh because I was on Mint. Maybe that's the difference.
« Last Edit: July 13, 2016, 07:21:39 pm by rvk » Logged
« previous next »
Recent
https://forum.lazarus.freepascal.org/index.php?topic=33333.0 4/6
28/8/2019 Can't connect to FB database
Donate €
Donate $
About donations (wiki)
Bookstore
Lazarus Handbook
(preview only)
Search
Search
Advanced search
https://forum.lazarus.freepascal.org/index.php?topic=33333.0 5/6
28/8/2019 Can't connect to FB database
https://forum.lazarus.freepascal.org/index.php?topic=33333.0 6/6