Joost van der Sluis ha scritto:
Op woensdag 17-10-2007 om 18:03 uur [tijdzone +0200], schreef Alvise
Nicoletti:
I tryed to compile my linux service for a server with ubuntu 64 bit and
mysql 5.
So I changed in the code every mysql40 reference to mysql50.
I tryed to change target, compile, and copy the binary to the another
server, when I try to connect to the database all I get is:
Can not load MySQL library "libmysqlclient.so". Please check your
installation.
The server configuration is ubuntu 64 bit, mysql 5.0 (client and server).
I need an application that works on this kind of server, so if you
suspect that I can have any trouble with this in the future please
notify it to me. I'm a little scared about that.
Is it just a misconfiguration problem?
If I do a locate libmysqlclient.so I found:
/usr/lib/libmysqlclient.so.15
/usr/lib/libmysqlclient.so.15.0.0
You have to install the 64-bit version of the mysql-client. On most
distributions, that's located in /usr/lib64/ and not /usr/lib.
So take a look in /usr/lib64 It's most probable that the correct link is
missing there. (The usual mysql-library-link-issues)
I don't know if I'm wrong... but...:
# ls -al /usr/
drwxr-xr-x 88 root root 20480 2007-10-18 09:36 lib
drwxr-xr-x 4 root root 4096 2007-07-18 12:13 lib32
lrwxrwxrwx 1 root root 3 2007-07-17 16:37 lib64 -> lib
So, if lib64 is just a link to lib... it should work anyway, right?
I can also do a:
# ls -al /usr/lib64/libmysqlclient.so
lrwxrwxrwx 1 root root 20 2007-10-18 09:36 /usr/lib64/libmysqlclient.so
-> libmysqlclient.so.12
Finding the correct library in the correct place...
Alvise
Joost.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives