CentOS5 Linux编译PHP 报 mysql configure failed 错误解决办法

先执行

./configure --prefix=/usr/local/php  --with-mysql=/usr/local/mysql

 

再执行

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs  --with-mysql=/usr/local/mysql --with-gd=/usr/local/gd2/ --with-curl --with-jpeg-dir=/usr/local/jpeg7 --with-freetype-dir=/usr/local/freetype/

 

即可,好像是第一次执行不能包括GD库--with-gd=/usr/local/gd2/ ,否则报错

 

 

这个错误害我重编译了无数次MySQL。。。

 

你可能感兴趣的:(centos,mysql,linux,php)