PDA

View Full Version : Compiling error


Peter
01-16-2004, 11:55 AM
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

Anyone has a clue how i can solve this?

DirectAdmin Support
01-16-2004, 12:01 PM
Hello,

Make sure you have all mysql packages installed.

You need:
MySQL-client
MySQL-devel
MySQL-server

You can check for them by typing:
rpm -qa | grep MySQLIf they arn't there, go into /usr/local/directadmin/scripts/packages and use "rpm -ivh filename.rpm" to install whichever isn't there.

John

Peter
01-16-2004, 12:03 PM
[root@shell root]# rpm -qa | grep MySQL
MySQL-client-4.0.14-0
MySQL-server-4.0.14-0
MySQL-devel-4.0.14-0

And it doesn't work

DirectAdmin Support
01-16-2004, 12:30 PM
what does:

locate libmysqlclient

return?

Peter
01-16-2004, 12:35 PM
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.la
/usr/lib/mysql/libmysqlclient_r.a
/usr/lib/mysql/libmysqlclient_r.la

Peter
01-17-2004, 09:11 AM
Any clue guys?

DirectAdmin Support
01-17-2004, 01:29 PM
Hello,

Make sure that you have mysql library path in /etc/ld.so.conf and run "ldconfig" to recompile the library listing.

[root@server]# cat /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-2.3.1/lib
/usr/local/lib/libmcrypt
/usr/lib/mysql
/usr/local/liband then run "ldconfig"

John

Peter
02-02-2004, 11:21 AM
Done that, didn't help

DirectAdmin Support
02-02-2004, 11:44 AM
Hello,

Not sure what else to check. If you want to send us your IP and root password to support@directadmin.com, we could have a look.

John

DirectAdmin Support
06-19-2005, 01:02 AM
Hello,

Try installing the MySQL-shared rpm.
You can find it here:
http://files.directadmin.com/services/7.2/MySQL-shared-4.0.23-0.i386.rpm
wget http://files.directadmin.com/services/7.2/MySQL-shared-4.0.23-0.i386.rpm
rpm -ivh MySQL-shared-4.0.23-0.i386.rpmJohn