编译安装Apache:出现错误configure: error: mod_deflate

在进行编译安装Apache时,出现如下错误

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

 1 ......................................
 2 ......................................
 3 ......................................
 4 checking whether to enable mod_auth_digest... yes (most)
 5 checking whether to enable mod_isapi... no
 6 checking whether to enable mod_file_cache... no
 7 checking whether to enable mod_cache... no
 8 checking whether to enable mod_disk_cache... no
 9 checking whether to enable mod_mem_cache... no
10 checking whether to enable mod_dbd... yes (most)
11 checking whether to enable mod_bucketeer... no
12 checking whether to enable mod_dumpio... yes (most)
13 checking whether to enable mod_echo... no
14 checking whether to enable mod_example... no
15 checking whether to enable mod_case_filter... no
16 checking whether to enable mod_case_filter_in... no
17 checking whether to enable mod_reqtimeout... yes (most)
18 checking whether to enable mod_ext_filter... yes (most)
19 checking whether to enable mod_include... yes (most)
20 checking whether to enable mod_filter... yes (most)
21 checking whether to enable mod_substitute... yes (most)
22 checking whether to enable mod_charset_lite... no
23 checking whether to enable mod_deflate... checking dependencies
24 checking for zlib location... not found
25 checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

解决方法:安装zlib-devel库

yum install  -y zlib-devel

 

 1 .....................................
 2 .....................................
 3 .....................................
 4 config.status: creating docs/conf/httpd.conf
 5 config.status: creating docs/conf/extra/httpd-autoindex.conf
 6 config.status: creating docs/conf/extra/httpd-dav.conf
 7 config.status: creating docs/conf/extra/httpd-default.conf
 8 config.status: creating docs/conf/extra/httpd-info.conf
 9 config.status: creating docs/conf/extra/httpd-languages.conf
10 config.status: creating docs/conf/extra/httpd-manual.conf
11 config.status: creating docs/conf/extra/httpd-mpm.conf
12 config.status: creating docs/conf/extra/httpd-multilang-errordoc.conf
13 config.status: creating docs/conf/extra/httpd-ssl.conf
14 config.status: creating docs/conf/extra/httpd-userdir.conf
15 config.status: creating docs/conf/extra/httpd-vhosts.conf
16 config.status: creating include/ap_config_layout.h
17 config.status: creating support/apxs
18 config.status: creating support/apachectl
19 config.status: creating support/dbmmanage
20 config.status: creating support/envvars-std
21 config.status: creating support/log_server_status
22 config.status: creating support/logresolve.pl
23 config.status: creating support/phf_abuse_log.cgi
24 config.status: creating support/split-logfile
25 config.status: creating build/rules.mk
26 config.status: creating build/pkg/pkginfo
27 config.status: creating build/config_vars.sh
28 config.status: creating include/ap_config_auto.h
29 config.status: executing default commands

至此,编译成功

转载于:https://www.cnblogs.com/eeexu123/p/9240627.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值