在PHP5.2的编译的过程中,如果遇到 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. 这是PHP5.2的一个改进,在PHP5.2.0之前的版本都不需要MYSQL启用安全线程。 我是因为优化apache ,我们是WEB 服务器所以我选择了 WORKER 模式重新编译了另一个apache,通过分析我出了3种解决方法,1 不使用mpm 模块 ,那优化目的就没了。2重新编译mysql ,--enable-thread-safe-client. +上这个参数 ,这是线上的服务器 不敢乱动,重新跑一套mysql 又要做slave数据库同步。3还PHP 低的版本。我们都是跑得5.2,5.1没使用过。。。 ~~~~~~~~~~~~~~~~很是惆怅啊
configure: error: Cannot find libmysqlclient_r under /usr/local/mysql.
在PHP5.2的编译的过程中,如果遇到checking for MySQL support... yeschecking for specified location of the MySQL UNIX socket... nochecking for MySQL UNIX socket location... noconfigure: error: Cannot find lib