温馨提示
1、列表网提醒您:在交易前请仔细核实商家真实资质!如发现非法商家,欢迎广大网民举报,举报电话:4000-999-800。
2、该信息由列表网网友发布,其真实性及合法性由发布人负责,列表网仅引用以供用户参考,详情请阅读列表网免责条款。
3、在签订合同或相关协议之前,任何要求预付定金、汇款等方式均存在风险,谨防上当受骗!
详情描述
环境介绍:
系统是cent mysql采用rpm包安装,php采用的php-5.3.20的源码包。php在当初编译安装时,未编译mysql扩展,后期
需要加上。
首先与当前php运行环境相同的源码包,解压后,进入到extmysql
执行usrlocalphpbinphpize
.configure --with-php-configusrlocalphpbinphp-config --with-mysql --with-zlib-dirusr
报错如下:
checking for mysqlclose in -lmysqlclient no
checking for mysqlerror in -lmysqlclient no
configure error mysql configure failed. Please check config.log for more information.
出现这个错误,是因为php在进行配置时,默认读取的mysql的库文件目录为usrlibmysql,但是操作系统为x8664,所以应该让其读
取usrlib64mysql目录。
修改配置参数如下:
.configure --with-php-configusrlocalphpbinphp-config --with-mysql --with-zlib-dirusr -LDFLAGS-
Lusrlib64mysql
然后make ampamp make install即可
详情请查看: