configure: error: Try adding --with-zlib-dir=
--------------------------------------------------------------
解决方案:下载zlib 安装解压缩zlib 然后在后面的参数加上 --with-zlib
./configure --prefix=/usr/local/php --with-mysql=/var/lib/mysql --with-libxml-dir=/usr/local/libxml2 --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib
configure: error: mysql configure failed. Please check config.log for more information.
----------------------------------------------------------------------
解决方案:--with-mysql-dir 加了一个dir
./configure --prefix=/usr/local/php --with-mysql-dir=/var/lib/mysql --with-libxml-dir=/usr/local/libxml2 --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib
又出现这个错误
Notice: Following unknown configure options were used:
--with-mysql-dir=/var/lib/mysql
原文:http://www.cnblogs.com/bluewelkin/p/3893290.html