Hi Graeme<br><br>> It seems the SqlDB + Firebird code only looks for 'libgds.so' and<br>
> 'libfbclient.so' giving the following error at runtime...<br><br>With my last production experience with Firebird, libgds.so was the stubs to the old Interbase lib where Firebird derived from. libfbclient.so.x is backwards compatible to these stubs. I guess in newer releases of firebird, they are slowly but surely trying to get away from Interbase.<br>
<br>A firebird installation is supposed to provide symlinks for libfbclient.so and libgds.so to load the correct lib for the release. In most cases, the LD_LIBRARY_PATH environment variable is supposed to be set if you want your so's to be located automatically. It's something you need to set up yourself in most cases.<br>
<br>It would be nice though if fpc's api wrapper of libfbclient also allows you to set an absolute path to the API<br><br><div class="gmail_quote">On Mon, Aug 24, 2009 at 11:02 AM, Graeme Geldenhuys <span dir="ltr"><<a href="mailto:graemeg@opensoft.homeip.net">graemeg@opensoft.homeip.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I noticed that on newer Ubuntu Linux systems that the name of the<br>
Firebird shared library has changed for v2.x versions of Firebird<br>
Database Server.<br>
<br>
----------------------------------<br>
$ ls -l /usr/lib/libfbcl*<br>
2009-08-24 12:06 /usr/lib/libfbclient.so.2 -> libfbclient.so.2.1.1<br>
2008-11-19 20:09 /usr/lib/libfbclient.so.2.1.1<br>
----------------------------------<br>
<br>
<br>
It seems the SqlDB + Firebird code only looks for 'libgds.so' and<br>
'libfbclient.so' giving the following error at runtime...<br>
<br>
Can not load default Firebird clients ("libgds.so" or "libfbclient.so").<br>
Check your installation.<br>
<br>
Is there a way we can better handle this for Firebird v2.x is SqlDB?<br>
After all, Firebird v2.x has been out for quite some time now.<br>
<br>
Or should be simply ignore this issue in SqlDB and make it the issue of<br>
the user? This option I do not like to much.<br>
<br>
If FBLib, this was handled by looking for newest to oldest versions of<br>
shared library. Loading was done in if..else statements.<br>
<br>
example<br>
// try v2.x library first<br>
if not successful loading of libfbclient.so.2 then<br>
// else try v1.x library<br>
if not successful loading of libfbclient.so.1 then<br>
// else try basic library name - no versions<br>
if not successful loading of libfbclient.so then<br>
// now user has a real installation problem<br>
<br>
<br>
Regards,<br>
- Graeme -<br>
<font color="#888888"><br>
--<br>
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal<br>
<a href="http://opensoft.homeip.net/fpgui/" target="_blank">http://opensoft.homeip.net/fpgui/</a><br>
<br>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-devel" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a><br>
</font></blockquote></div><br>