安装PHP5时出现了错误。
configure: error: mysql configure failed. Please check config.log for more information.
./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-gd –with-jpeg-dir –with-zlib-dir –with-png-dir –with-ttf –with-mysql enable-track-vars 出现的问题。

如果是自己选择GZ包安装的MYSQL。这里要加路径。
加的方法为–with-mysql-dir=/user/local/mysql
切记不可写为:–with-mysql=/user/local/mysql