LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   MySQL Up and Running, but libmysqlclient Not Found (https://www.linuxquestions.org/questions/linux-server-73/mysql-up-and-running-but-libmysqlclient-not-found-925426/)

mmem700 01-24-2012 05: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:

Code:

gcc -shared  sql.lo sql_init.lo plugin_common.lo  -L/usr/include/mysql -lmysqlclient -lresolv -lresolv -lc  -Wl,-soname -Wl,libsql.so.2 -o .libs/libsql.so.2.0.23
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[2]: *** [libsql.la] 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:

Code:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
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 07: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 08:25 AM

Thanks for responding...

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

weibullguy 01-26-2012 03: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 04:00 PM.