Saturday, May 5, 2012

Compile Error: Cannot find libmysqlclient

I'm compiling php via source under a 64bit CentOS 5.6. Encountered the ff while compiling:
checking for working const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for 8-bit clean memcmp... yes
checking for stdarg.h... (cached) yes
checking for mcrypt support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
To resolve, just put --with-libdir=lib64 in your ./configure options when compiling php.

Update: If this didn't work, try to install mysql-devel and compile again.

No comments:

Post a Comment