Jun
9

How to fix the ERROR: unable to find mysqlclient library (libmysqlclient.*)

Q) How to fix the mysql error ” ERROR: unable to find mysqlclient library (libmysqlclient.*) ” during the snort installation!

**********************************************
ERROR: unable to find mysqlclient library (libmysqlclient.*)
checked in the following places
/usr
/usr/lib
/usr/mysql
/usr/mysql/lib
/usr/lib/mysql
/usr/local
/usr/local/lib
/usr/local/mysql
/usr/local/mysql/lib
/usr/local/lib/mysql
**********************************************

During the installation of snort, when you execute the command ./configure –with-mysql you may get the above error( I got :) ) , I Google’d the error to find a resolution, but can’t find a direct resolution. But I found a command `–with-mysql-libraries=DIR’ which specifies the location for mysql client library. So I executed the command

locate libmysqlclient

I got the following result

root@techinterplay [~/techin/snort-2.8.4.1]# locate libmysqlclient
/usr/lib64/libmysqlclient.so
/usr/lib64/libmysqlclient.so.15
/usr/lib64/libmysqlclient.so.15.0.0
/usr/lib64/libmysqlclient_r.so
/usr/lib64/libmysqlclient_r.so.15
/usr/lib64/libmysqlclient_r.so.15.0.0
/usr/lib64/mysql/libmysqlclient.a
/usr/lib64/mysql/libmysqlclient.la
/usr/lib64/mysql/libmysqlclient.so
/usr/lib64/mysql/libmysqlclient_r.a
/usr/lib64/mysql/libmysqlclient_r.la
/usr/lib64/mysql/libmysqlclient_r.so
/usr/local/cpanel/lib64/libmysqlclient.so.14

So libmysqlclient library is located inside the directory /usr/lib64/mysql/. So just execute the following command to fix the error.

./configure –with-mysql-libraries=/usr/lib64/mysql/

1 Comment to “How to fix the ERROR: unable to find mysqlclient library (libmysqlclient.*)”

Post comment

Follow us on Twitter! Follow us on Twitter!
http://twitter.com/efheem
The next version of Ubuntu is coming soon

Recent Posts

Recent Comments

Firefox Download Button
Google Analytics Alternative Add to Technorati Favorites Technology Blogs - BlogCatalog Blog Directory Free Hit Counter Technology Google Analytics Alternative Blog Buzzer