MySQL Forums
Forum List  »  Source, Builds, Binaries

Help needed compiling (cannot find -lmysqlcient)
Posted by: patchu1
Date: August 22, 2005 03:52PM

g++ -O3 -g -D _FILE_OFFSET_BITS=64 -D LINUX -Wall -W -o bin/do_something src/foo.o src/lib/mysqlSNR.o -L src/lib/mysql/ -lmysqlclient -lz

/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: cannot find -lmysqlclient


I am running SUSE Linux Enterprise Server 9 on an IBM PowerPC machine.

The following mysql rpms are installed:
linux:~/# rpm -qa | grep mysql
mysql-client-4.0.18-32.1
perl-DBD-mysql-2.9003-22.1
mysql-shared-4.0.18-32.1
python-mysql-0.9.3b2-90.1
qt3-mysql-3.3.1-35.11
mysql-4.0.18-32.9

And here's the mysqlclient files which exists:
linux:~ # find / -name '*mysqlclient*'
/usr/lib/mysql/libmysqlclient.so.12
/usr/lib/mysql/libmysqlclient.so.12.0.0
/usr/lib/libmysqlclient_r.so.12.0.0
/usr/lib/libmysqlclient_r.so.12
/usr/lib/libmysqlclient.so.12
/usr/lib/libmysqlclient.so.12.0.0

Notice there is no libmysqlclient.a which I believe is the file the linker is looking for. I do have mysql-client installed so I'm not sure why it's not present. I could not find any PPC compiled mysqlclient RPMs to download either. Any help would be appreciated. Thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
Help needed compiling (cannot find -lmysqlcient)
4188
August 22, 2005 03:52PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.