abe-shi
abe-shi

Reputation: 31

PDO_MYSQL configure failed when installing so file

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?

Upvotes: 2

Views: 1787

Answers (2)

Manh Lee
Manh Lee

Reputation: 1

change configure path with:--with-pdo-mysql=/path/to/mysql_config

Upvotes: 0

cnvzmxcvmcx
cnvzmxcvmcx

Reputation: 1111

Installation processes require the development headers along with the binaries. In this case, you are missing libmysqlclient-dev:

sudo apt-get install libmysqlclient-dev

Upvotes: 1

Related Questions