centos安装pdo_mysql扩展不成功

WBOY
Release: 2016-06-02 11:32:37
Original
1970 people have browsed it

centospdophp安装pdo mysql

环境: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

我尝试这下面这些路径都不行

whereis mysql

mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

which mysql

/bin/mysql

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!