时间:2021-07-01 10:21:17 帮助过:22人阅读
环境:Centos 7
在PHP5.4.16的基础上安装pdo_mysql扩展不成功。
我的按照步骤:
1)在PHP安装包的ext下找到pdo_mysql;
2)执行]$ phpize
3) 执行:$ ./configure --with-php-config=/usr/bin/php-config --with-pdo-mysql=/var/lib/mysql
4)出错提示:
checking for mysql_config... not found
checking for mysql install under /var/lib/mysql... can not find it
configure: error: Unable to find your mysql installation
我尝试这下面这些路径都不行
mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
/bin/mysql