-   Red Hat (
-   -   Install libmysqlclient.a (

sujeeva 01-09-2013 11:33 AM

Install libmysqlclient.a

I installed mysql-devel using yum but don't see the static library libmysqlclient.a.

$ uname -a
Linux 2.6.32-279.5.2.el6.x86_64 #1 SMP Tue Aug 14 11:36:39 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

$ locate libmysqlclient

Please advise on how I could get libmysqlclient.a installed.



knudfl 01-09-2013 11:56 AM

Welcome to LQ.

CentOS Forum
"It appears that the the static libraries are no longer built. ... "

Unless you are building a static application,
a "cheat libmysqlclient.a" may work :

cd /usr/lib64/mysql/
# ln -s libmysqlclient.a


sujeeva 02-20-2013 03:08 PM

Thanks for the quick response. Dynamically linking the libraries worked.

All times are GMT -5. The time now is 05:48 PM.