最新消息:

configure: error: Cannot find libmysqlclient_r under /usr/local/mysql/.

Linux admin 1浏览

编译php是出现错误

checking for MySQL support… yes
checking for specified location of the MySQL UNIX socket… no
checking for MySQL UNIX socket location… no
configure: error: Cannot find libmysqlclient_r under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore!

解决一
你可能在编译APACHE的时候,使用 -with-mpm模块,请在编译MYSQL的时候加上 -enable-thread-safe-client.

解决二
通过查找libmysqlclient,发现是在/usr/lib64/mysql/目录内的libmysqlclient.so.15.0.0做的软连接,PHP默认是去的 /usr/lib/搜索,所以没有找到.找到问题了就好解决了.

cp -rp /usr/lib64/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so
相关日志PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
升级最新 Nginx Mysql Php
mysql分页limit 优化
mysql 在线安装sphinx存储引擎
PHP关闭浏览器后仍然继续执行的函数

转载请注明:爱开源 » configure: error: Cannot find libmysqlclient_r under /usr/local/mysql/.