Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
Autor |
Nachricht |
xstreur
Anmeldungsdatum: 04.10.2006 Beiträge: 4 Wohnort: 's-Hertogenbosch
|
Verfasst am: 04.10.2006, 14:21 Titel: mysqlclient |
|
|
Please help!
When compiling the a mysql.bas file I get the error:
/usr/local/freebasic/bin/linux/ld: cannot find -lmysqlclient
There, are though libmysqlclient files:
find / -ls |grep mysqlclient
58061 8228 -rw-r--r-- 1 root root 8414866 Aug 26 13:06 /usr/lib64/mysql/libmysqlclient_r.a
58059 8192 -rw-r--r-- 1 root root 8379400 Aug 26 13:06 /usr/lib64/mysql/libmysqlclient.a
58060 4 -rwxr-xr-x 1 root root 927 Aug 26 13:06 /usr/lib64/mysql/libmysqlclient.la
90209 0 lrwxrwxrwx 1 root root 27 Jul 17 22:50 /usr/lib64/mysql/libmysqlclient.so.12 -> ../libmysqlclient.so.12.0.0
58062 4 -rwxr-xr-x 1 root root 973 Aug 26 13:06 /usr/lib64/mysql/libmysqlclient_r.la
90210 0 lrwxrwxrwx 1 root root 27 Jul 17 22:50 /usr/lib64/mysql/libmysqlclient.so.12.0.0 -> ../libmysqlclient.so.12.0.0
90208 272 -rwxr-xr-x 1 root root 274971 Jun 30 2004 /usr/lib64/libmysqlclient_r.so.12.0.0
58075 4508 -rwxr-xr-x 1 root root 4610484 Aug 26 12:18 /usr/lib64/libmysqlclient_r.so.15.0.0
90207 0 lrwxrwxrwx 1 root root 26 Jul 17 22:50 /usr/lib64/libmysqlclient_r.so.12 -> libmysqlclient_r.so.12.0.0
58074 0 lrwxrwxrwx 1 root root 26 Sep 11 22:29 /usr/lib64/libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
58070 0 lrwxrwxrwx 1 root root 24 Sep 11 22:29 /usr/lib64/libmysqlclient.so -> libmysqlclient.so.15.0.0
90205 0 lrwxrwxrwx 1 root root 24 Jul 17 22:50 /usr/lib64/libmysqlclient.so.12 -> libmysqlclient.so.12.0.0
58071 0 lrwxrwxrwx 1 root root 24 Sep 11 22:29 /usr/lib64/libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
58073 0 lrwxrwxrwx 1 root root 26 Sep 11 22:29 /usr/lib64/libmysqlclient_r.so -> libmysqlclient_r.so.15.0.0
90206 264 -rwxr-xr-x 1 root root 267918 Jun 30 2004 /usr/lib64/libmysqlclient.so.12.0.0
58072 4488 -rwxr-xr-x 1 root root 4587554 Aug 26 12:19 /usr/lib64/libmysqlclient.so.15.0.0 |
|
Nach oben |
|
|
Michael712 aka anfänger, programmierer
Anmeldungsdatum: 26.03.2005 Beiträge: 1593
|
Verfasst am: 04.10.2006, 15:52 Titel: |
|
|
I think there is a problem because you are using 64-bit libraries.
WIth freebasic you can only compile 32-bit programs.
Try to download 32-bit versions of libmysqlclient.a and copy them to /usr/lib or to /usr/share/freebasic/lib/linux. |
|
Nach oben |
|
|
xstreur
Anmeldungsdatum: 04.10.2006 Beiträge: 4 Wohnort: 's-Hertogenbosch
|
Verfasst am: 04.10.2006, 16:45 Titel: libmysqlclient.a |
|
|
I've installed Mysql-client on a linux 32 bits system. There is no libmysqlclient.a found. This is what I found in the /usr/lib structure:
l07wks01:/usr/lib # ls -la |grep mysql
lrwxrwxrwx 1 root root 24 Sep 6 14:53 libmysqlclient.so.14 -> libmysql client.so.14.0.0
-rwxr-xr-x 1 root root 1154364 Sep 9 2005 libmysqlclient.so.14.0.0
lrwxrwxrwx 1 root root 26 Sep 6 14:53 libmysqlclient_r.so.14 -> libmys qlclient_r.so.14.0.0
-rwxr-xr-x 1 root root 1158560 Sep 9 2005 libmysqlclient_r.so.14.0.0
drwxr-xr-x 2 root root 248 Sep 6 18:52 mysql
dl07wks01:/usr/lib # cd mysql
dl07wks01:/usr/lib/mysql # ls -la
total 524
drwxr-xr-x 2 root root 248 Sep 6 18:52 .
drwxr-xr-x 151 root root 49016 Sep 6 20:43 ..
lrwxrwxrwx 1 root root 27 Sep 6 14:53 libmysqlclient.so.14 -> ../libmysq lclient.so.14.0.0
lrwxrwxrwx 1 root root 27 Sep 6 14:53 libmysqlclient.so.14.0.0 -> ../lib mysqlclient.so.14.0.0
lrwxrwxrwx 1 root root 29 Sep 6 14:53 libmysqlclient_r.so.14 -> ../libmy sqlclient_r.so.14.0.0
lrwxrwxrwx 1 root root 29 Sep 6 14:53 libmysqlclient_r.so.14.0.0 -> ../l ibmysqlclient_r.so.14.0.0
-rw-r--r-- 1 root root 486133 Jun 8 15:28 mysqld.sym
Where's my libmysqlclient.a ??? |
|
Nach oben |
|
|
Michael712 aka anfänger, programmierer
Anmeldungsdatum: 26.03.2005 Beiträge: 1593
|
Verfasst am: 04.10.2006, 17:43 Titel: |
|
|
Its my fault, sorry. You have to install mysql-devel.
If you are using .rpm files then look for it at rpm.pbone.net or rpmseek.com. |
|
Nach oben |
|
|
xstreur
Anmeldungsdatum: 04.10.2006 Beiträge: 4 Wohnort: 's-Hertogenbosch
|
Verfasst am: 04.10.2006, 21:26 Titel: libmysqlclient found but ... |
|
|
I'v installed devel-package. Found the libraries and put them first in /usr/lib and after failure in the /usr/local/freebasic/lib/linux directory. Now I get anothere result:
fstreur@dl07srv01:/home/users/fstreur/Proj/freebas> fbc mysql.bas
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
/usr/local/freebasic/lib/linux/libmysqlclient.a(my_compress.o): In function `my_ compress_alloc':
: undefined reference to `compress'
/usr/local/freebasic/lib/linux/libmysqlclient.a(my_compress.o): In function `my_ uncompress':
: undefined reference to `uncompress'
I've installed the 5.0.15 package rpm????? |
|
Nach oben |
|
|
max06
Anmeldungsdatum: 05.12.2004 Beiträge: 390 Wohnort: Augsburg
|
Verfasst am: 06.10.2006, 22:16 Titel: |
|
|
I think you have to modify the mysql.bi
There's a #include "mysqlclient" or similiar... but it have to be "libmysqlclient"
Sry, my English isn't very good, but I hope you know what I mean
Have fun with mysql
Florian |
|
Nach oben |
|
|
xstreur
Anmeldungsdatum: 04.10.2006 Beiträge: 4 Wohnort: 's-Hertogenbosch
|
Verfasst am: 06.10.2006, 23:05 Titel: mysqlclient vs libmysqlclient |
|
|
When I change the mysql.bi and point to libmysqlcient I get:
/usr/local/freebasic/bin/linux/ld: cannot find -llibmysqlclient
When I point to mysqlclient:
/usr/local/freebasic/lib/linux/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
: undefined reference to `compress'
/usr/local/freebasic/lib/linux/libmysqlclient.a(my_compress.o): In function `my_uncompress':
: undefined reference to `uncompress'
So one way or the other it doesn't work??? |
|
Nach oben |
|
|
Michael712 aka anfänger, programmierer
Anmeldungsdatum: 26.03.2005 Beiträge: 1593
|
Verfasst am: 07.10.2006, 00:09 Titel: |
|
|
Are you using the newest FreeBASIC version?
If you use 0.16stable then try to compile your program with 0.17testing.
If you get the same result then ask at the english forum .
Michael _________________
Code: | #include "signatur.bi" |
|
|
Nach oben |
|
|
|