您的位置:首页 > 编程语言 > PHP开发

新版php 5.2.6安装时注意事项

2008-07-02 11:57 429 查看
在configure 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.

这是PHP5.2的一个改进,在PHP5.2.0之前的版本都不需要MYSQL启用安全线程。
因此在安装MYSQL时,configure应该是:
./configure prefix=/usr/local/mysql –with-extra-charsets=all –enable-thread-safe-client
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: