【转】cent-os下编译安装apache时碰到的缺少zlib引起的错误

http://blog.csdn.net/xinhaozheng/article/details/4221525
在编译安装apache时,在使用

./configure --enable-mods-shared="all ssl cache proxy authn_alias mem_cache file_cache authnz_ldap charset_lite dav_lock disk_cache"



出现如下错误:

checking for zlib location... not found
checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

似乎是没有安装zlib引起的,而似乎mod_deflate模块又是有依赖于zlib,google下就有结果了。



解决办法:



yum install zlib

yum install zlib-devel



再次编译又出现个新的错误:



no SSL-C headers found
configure: error: ...No recognized SSL/TLS toolkit detected



我知道这是因为我没有安装ssl的缘故。可以安装openssl来做测试。不过现在先不安装了。去掉编译中的ssl,再编译,成功。

猜你喜欢

转载自godwork.iteye.com/blog/2169842