编译安装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

至此,编译成功

posted @ 2018-06-28 20:53  启云  阅读(2257)  评论(0编辑  收藏  举报