首页 > 代码库 > linux安装php出现的各种错误解决方案
linux安装php出现的各种错误解决方案
configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information.
--------------------------------------------------------------
解决方案:下载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