centos 安装 pdo mysql_centos 下安装 pdo_mysql 扩展 报错 ?报错-问答-阿里云开发者社区-阿里云...

php 是源码编译安装,mysql 是通过rpm 包安装,想安装一个pdo_mysql扩展;进入到php的源码包下找pdo_mysql扩展后;

一直编译不通过;

./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/bin/mysql --with-zlib-dir=/var/lib64/mysql

mysql的安装路径我也不知道是那个但是 whereis mysql 出来的路径 就  /usr/bin/mysql 有效,

错误如下

checking for MySQL support for PDO... yes, shared

checking for the location of libz... /var/lib64/mysql

checking for mysql_config... /usr/bin/mysql

/usr/bin/mysql: unknown option '--libs'

/usr/bin/mysql: unknown option '--cflags'

checking for mysql_commit in -lmysqlclient... no

checking for mysql_commit in -lmysqlclient... (cached) no

configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.

请大神帮忙解决啊;谢谢;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值