<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">Le 18/11/2013 13:12, Michael Van
Canneyt a écrit :<br>
</div>
<blockquote
cite="mid:alpine.DEB.2.02.1311181310220.22696@home.telenet.be"
type="cite">
<br>
<br>
On Mon, 18 Nov 2013, Antonio Fortuny wrote:
<br>
<br>
<blockquote type="cite">
<br>
Le 18/11/2013 12:19, Michael Van Canneyt a écrit :
<br>
<blockquote type="cite">
<br>
<br>
On Mon, 18 Nov 2013, Antonio Fortuny wrote:
<br>
<br>
<blockquote type="cite">Hi Folks.
<br>
<br>
I'm a little bit annoyed by a boring specification in the
fpc package. When in a program I use the TIBConnection
(along witha transaction and a query), the compiled program
looks for the local libfbclient when establishing the
connection.
<br>
So far so good. When I install the program in another Linux
box, running Firebird 2.1, the program complains that
<br>
"Can not load default Firebird clients ("libfbclient.so.2.5"
or "libgds.so" or "libfbembed.so.2.5")". Looks normal as
this Linux box uses Firebird 2.1
<br>
Is it possible to force what library should be used instead
? (as UIB does)
<br>
Having a look inside the code, in ibase60 (lines 2680 and
fw) library names look fixed and looks like the Firebird
version should be fixed before using it.
<br>
</blockquote>
<br>
You can do 2 things:
<br>
<br>
1. use the TSQLDBLibraryLoader component from sqldblib (in
trunk)
<br>
<br>
2. call
<br>
function InitialiseIBase60(Const LibraryName : AnsiString)
: integer;
<br>
</blockquote>
found it in ibase60dyn.pp --> ibase60.inc
<br>
before connecting to the DB:
<br>
InitialiseIBase60('libfbclient.so');
<br>
compile on one system (OpenSuse x86_64), copy to the target
system (Ubuntu x86_64)
<br>
target systemp library /usr/lib/libfbclient.so.2 copied in
current directory as libfbclient.so
<br>
then run and:
<br>
An unhandled exception occurred at $00000000004B544B :
<br>
EInOutError : Can not load Firebird client library
"libfbclient.so". Check your installation.
<br>
<br>
any comment ?
<br>
</blockquote>
<br>
The current directory on linux is never searched. If you want that
you must add a complete path.
<br>
</blockquote>
Yep, I did find it myself <span class="moz-smiley-s11"><span> 8-)
</span></span><br>
Thanks anyway Michael.<br>
<br>
<blockquote
cite="mid:alpine.DEB.2.02.1311181310220.22696@home.telenet.be"
type="cite">
<br>
Michael.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<table
style="font-family:'Calibri','sans-serif';font-size:8.0pt;color:#002f87;border:0;width:auto;">
<tbody>
<tr>
<td style="vertical-align:bottom;padding:40px 20px
25px;border-top:1pt solid #BFBFBF;"> <img alt="Sita
Software"
src="cid:part1.06090304.06030303@sitasoftware.lu"> </td>
</tr>
<tr>
<td style="vertical-align: top; padding: 5px 20px 0;"> <b>Antonio
Fortuny</b><br>
Senior Software engineer<br>
<br>
220, avenue de la Liberté<br>
L-4602 Niederkorn<br>
Tel.: +352 58 00 93 - 93<br>
<a style="color:#002f87;cursor:pointer;text-decoration:
none;" href="http://www.sitasoftware.lu">www.sitasoftware.lu</a><br>
</td>
</tr>
<tr>
<td style="padding:20px 20px 30px;border-bottom: 1pt solid
#BFBFBF;" align="right"> <img alt="Your IT Partner"
src="cid:part3.03040105.04020700@sitasoftware.lu"> </td>
</tr>
</tbody>
</table>
</div>
</body>
</html>