9. 07.
上次在编译php对mysqli的支持的时候出现了如下错误:
checking whether to enable embedded MySQLi support… no
checking for mysql_set_server_option in -lmysqlclient… no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.
经过大量测试, 发现解决方案:
(php-xxxxx为php文件名,
# cd /usr/local/src/php-xxxxx/ext/mysqli
# yum -y install mysql-devel
# php安装路径/php/bin/phpize (phpize参考)
# ./configure --with-php-config=
# make
# make install
这时屏幕会打印mysqli.so生成的路径, 在php.ini里加载就好啦
作者: hao32 | 可以转载, 转载时务必以超链接形式标明文章原始出处和作者信息及版权声明
网址:http://www.hao32.com/unix-linux/82.html
Tags: lmysqlclient, mysqli, mysql_set_server_option, wrong mysql library version
hao32
我和你遇到了同样的问题。
但是请问 第三条语句的 #/phpize 是什么意思。
出现这种问题的原因是什么?
phpize参见:http://www.hao32.com/webserver/313.html