Das deutsche QBasic- und FreeBASIC-Forum Foren-Übersicht Das deutsche QBasic- und FreeBASIC-Forum
Für euch erreichbar unter qb-forum.de, fb-forum.de und freebasic-forum.de!
 
FAQFAQ   SuchenSuchen   MitgliederlisteMitgliederliste   BenutzergruppenBenutzergruppen  RegistrierenRegistrieren
ProfilProfil   Einloggen, um private Nachrichten zu lesenEinloggen, um private Nachrichten zu lesen   LoginLogin
Zur Begleitseite des Forums / Chat / Impressum
Aktueller Forenpartner:

mysqlclient

 
Neues Thema eröffnen   Neue Antwort erstellen    Das deutsche QBasic- und FreeBASIC-Forum Foren-Übersicht -> Linux-spezifische Fragen
Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
xstreur



Anmeldungsdatum: 04.10.2006
Beiträge: 4
Wohnort: 's-Hertogenbosch

BeitragVerfasst am: 04.10.2006, 13:21    Titel: mysqlclient Antworten mit Zitat

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
Benutzer-Profile anzeigen Private Nachricht senden
Michael712
aka anfänger, programmierer


Anmeldungsdatum: 26.03.2005
Beiträge: 1593

BeitragVerfasst am: 04.10.2006, 14:52    Titel: Antworten mit Zitat

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
Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden
xstreur



Anmeldungsdatum: 04.10.2006
Beiträge: 4
Wohnort: 's-Hertogenbosch

BeitragVerfasst am: 04.10.2006, 15:45    Titel: libmysqlclient.a Antworten mit Zitat

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
Benutzer-Profile anzeigen Private Nachricht senden
Michael712
aka anfänger, programmierer


Anmeldungsdatum: 26.03.2005
Beiträge: 1593

BeitragVerfasst am: 04.10.2006, 16:43    Titel: Antworten mit Zitat

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. zwinkern
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden
xstreur



Anmeldungsdatum: 04.10.2006
Beiträge: 4
Wohnort: 's-Hertogenbosch

BeitragVerfasst am: 04.10.2006, 20:26    Titel: libmysqlclient found but ... Antworten mit Zitat

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
Benutzer-Profile anzeigen Private Nachricht senden
max06



Anmeldungsdatum: 05.12.2004
Beiträge: 390
Wohnort: Augsburg

BeitragVerfasst am: 06.10.2006, 21:16    Titel: Antworten mit Zitat

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 lächeln


Have fun with mysql lächeln


Florian
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen
xstreur



Anmeldungsdatum: 04.10.2006
Beiträge: 4
Wohnort: 's-Hertogenbosch

BeitragVerfasst am: 06.10.2006, 22:05    Titel: mysqlclient vs libmysqlclient Antworten mit Zitat

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
Benutzer-Profile anzeigen Private Nachricht senden
Michael712
aka anfänger, programmierer


Anmeldungsdatum: 26.03.2005
Beiträge: 1593

BeitragVerfasst am: 06.10.2006, 23:09    Titel: Antworten mit Zitat

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 . zwinkern

Michael
_________________
Code:
#include "signatur.bi"
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden
Beiträge der letzten Zeit anzeigen:   
Neues Thema eröffnen   Neue Antwort erstellen    Das deutsche QBasic- und FreeBASIC-Forum Foren-Übersicht -> Linux-spezifische Fragen Alle Zeiten sind GMT + 1 Stunde
Seite 1 von 1

 
Gehe zu:  
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.

 Impressum :: Datenschutz