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
我已经安装了php 5.4.44和mysql 5.1.51,我尝试安装pdo_mysql,但是当我执行命令时./configure --with-php-config = / usr / local / php / bin / php-config - -with-pdo-mysql = / usr / local / mysql --with-zlib-dir = / usr / lib64 /,总是显示
PDO_MYSQL configure failed, MySQL 4.1 needed.
PDO_MYSQL配置失败,需要MySQL 4.1。
I have tried change the version of PHP which doesn't work, where is the problem and how can I fix this?
我试过更改不起作用的PHP版本,问题出在哪里以及如何解决这个问题?
1 个解决方案
#1
1
Installation processes require the development headers along with the binaries. In this case, you are missing libmysqlclient-dev
:
安装过程需要开发标题和二进制文件。在这种情况下,您缺少libmysqlclient-dev:
sudo apt-get install libmysqlclient-dev
#1
1
Installation processes require the development headers along with the binaries. In this case, you are missing libmysqlclient-dev
:
安装过程需要开发标题和二进制文件。在这种情况下,您缺少libmysqlclient-dev:
sudo apt-get install libmysqlclient-dev