您的位置:首页 > 编程语言 > PHP开发

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

2007-12-08 21:30 721 查看
安装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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  php
相关文章推荐