编译php错误代码configure: error: Try adding --with-zlib-dir=. Please check config.log for more information.

来源:互联网 发布:手机拦截广告软件 编辑:程序博客网 时间:2024/06/05 00:22
安装php执行./configure --prefix=/home/php --with-mysql=/home/mysql --with-apxs2=

/home/httpd/bin/apxs命令

出现错误configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information.


决绝原因:不要设置php安装目录,输入命令:
 ./configure --prefix=--with-mysql=/home/mysql --with-apxs2=/home/httpd/bin/apxs



OK------- Thank you for using PHP.
原创粉丝点击