-   Linux - Server (
-   -   MySQL Up and Running, but libmysqlclient Not Found (

mmem700 01-24-2012 06:29 AM

MySQL Up and Running, but libmysqlclient Not Found
I'm new to compiling on Linux so please be patient.

I'm compiling Cyrus SASL and it's saying:


gcc -shared  sql.lo sql_init.lo plugin_common.lo  -L/usr/include/mysql -lmysqlclient -lresolv -lresolv -lc  -Wl,-soname -Wl, -o .libs/
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[2]: *** [] Error 1
make[2]: Leaving directory `/home/russ/build/cyrus-sasl-2.1.23/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/russ/build/cyrus-sasl-2.1.23'
make: *** [all] Error 2

So I assume it's looking for libmysqlclient.a - Is that correct?

If so, here's the issue. I installed MySQL 5.5 like this:


rpm -Uvh
rpm -Uvh
yum --enablerepo=remi,remi-test list mysql mysql-server
yum --enablerepo=remi,remi-test install mysql mysql-server mysql-devel

The MySQL server is up and running fine, but the problem is, I can't find libmysqlclient.a anywhere.

What is my next move - i.e. How do I generate a copy of libmysqlclient.a - preferably without having to reinstall MySQL?

weibullguy 01-24-2012 08:58 AM

It's better to use your package manager to install software. If you told us what distro you were using, someone could tell you how to do that. It's possible your distro splits the server and client software.

mmem700 01-24-2012 09:25 AM

Thanks for responding...

I'm on CentOS 5.6 - a GoDaddy dedicated server.

weibullguy 01-26-2012 04:48 PM

Did you look to see if there is a mysqlclient package in the package manager?

All times are GMT -5. The time now is 11:35 AM.