关于php插件pdo_mysql的安装

回复 收藏
今天在做一个商城的连接的时候,需要MpDO验证。需要安装pdo_mysql模块,刚开始按照php扩展模块的安装按照这个安装ZIP,curl都成功了但是安装pdo_mysql却不行,在./configure --with-php-config=/usr/local/php/bin/php-config是出现错误。如下
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for MySQL support for PDO... yes, shared
checking for the location of libz... no
checking for mysql_config... not found
configure: error: Unable to find your mysql installation
找不到mysql

最后终于找到了解决办法:
这样来编译:./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mysql
就可以了,之后按照这php扩展模块安装个来做即可

我的博客:http://www.cnblogs.com/Dicky-Zhang/p/5369312.html



2016-04-08 18:24 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: