我本沉默传奇,嘟嘟传奇,,我本沉默发布网-Www.pkmir2.Com,仙剑传奇(WAP手机版)
首页 > 迷失传奇

解决configure: error: wrong mysql library version or lib not found

作者:我本沉默  来源:www.pkmir2.com  查看:506
前次在编译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= /php-config --enable-embedded-mysqli=shared --enable-shared
# make
# make install
这时屏幕会打印mysqli.so生成的路径, 在php.ini里加载就好啦
上一篇:IIS设备PHP,安装后php页面提示404缺点的解决办法
下一篇:我本沉默 关于nginx限制IP或IP段的问题

©2009-2016 pkmir2.com 版权所有 www.pkmir2.com 湘ICP备2022024766号-1

本站声明:本站所有技术资料与资源均为网络搜集整理,并不代表本站的观点与立场,如有侵犯您的权益,请来信xiov壹壹壹#qq.com指出,本站将立即改正

©CopyRight 2009-2012, 我本沉默传奇,我本沉默发布网,嘟嘟传奇,仙剑传奇,秋风传奇,情缘传奇,执迷古镇 网站地图 Inc.All Rights Reserved