I have installed php 5.4.44 and mysql 5.1.51, and I tried to install pdo_mysql
, but when I execute the command ./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib64/
, always shows
PDO_MYSQL configure failed, MySQL 4.1 needed.
I have tried change the version of PHP which doesn't work, where is the problem and how can I fix this?
Installation processes require the development headers along with the binaries. In this case, you are missing libmysqlclient-dev
:
sudo apt-get install libmysqlclient-dev
更改配置路径:--with-pdo-mysql=/path/to/mysql_config
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.