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

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

 ......................................
......................................
......................................
checking whether to enable mod_auth_digest... yes (most)
checking whether to enable mod_isapi... no
checking whether to enable mod_file_cache... no
checking whether to enable mod_cache... no
checking whether to enable mod_disk_cache... no
checking whether to enable mod_mem_cache... no
checking whether to enable mod_dbd... yes (most)
checking whether to enable mod_bucketeer... no
checking whether to enable mod_dumpio... yes (most)
checking whether to enable mod_echo... no
checking whether to enable mod_example... no
checking whether to enable mod_case_filter... no
checking whether to enable mod_case_filter_in... no
checking whether to enable mod_reqtimeout... yes (most)
checking whether to enable mod_ext_filter... yes (most)
checking whether to enable mod_include... yes (most)
checking whether to enable mod_filter... yes (most)
checking whether to enable mod_substitute... yes (most)
checking whether to enable mod_charset_lite... no
checking whether to enable mod_deflate... checking dependencies
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-devel库

yum install  -y zlib-devel
 .....................................
.....................................
.....................................
config.status: creating docs/conf/httpd.conf
config.status: creating docs/conf/extra/httpd-autoindex.conf
config.status: creating docs/conf/extra/httpd-dav.conf
config.status: creating docs/conf/extra/httpd-default.conf
config.status: creating docs/conf/extra/httpd-info.conf
config.status: creating docs/conf/extra/httpd-languages.conf
config.status: creating docs/conf/extra/httpd-manual.conf
config.status: creating docs/conf/extra/httpd-mpm.conf
config.status: creating docs/conf/extra/httpd-multilang-errordoc.conf
config.status: creating docs/conf/extra/httpd-ssl.conf
config.status: creating docs/conf/extra/httpd-userdir.conf
config.status: creating docs/conf/extra/httpd-vhosts.conf
config.status: creating include/ap_config_layout.h
config.status: creating support/apxs
config.status: creating support/apachectl
config.status: creating support/dbmmanage
config.status: creating support/envvars-std
config.status: creating support/log_server_status
config.status: creating support/logresolve.pl
config.status: creating support/phf_abuse_log.cgi
config.status: creating support/split-logfile
config.status: creating build/rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: executing default commands

至此,编译成功

最新文章

  1. 带你实现开发者头条APP(五)--RecyclerView下拉刷新上拉加载
  2. MySQL 日期时间相关函数整理
  3. 压力测试报出503错误---ASP.NET支持大并发的相关配置
  4. 【Android】IntentService & HandlerThread源码解析
  5. 自定义的你的ubuntu鼠标右键
  6. Vim练级笔记(持续更新)
  7. poj 1330 LCA最近公共祖先
  8. 禁掉或启用firefox 的 javascript 脚本
  9. APACHE 安装
  10. Eclipse出错不断,注册表不能乱改
  11. python 数字以及字符串(方法总结,有的可能理解错误)
  12. MySQL JDBC简单使用
  13. python大法好——继承、多态
  14. Spring的第四天AOP之注解版
  15. mysql备份数据库出错mysqldump: [ERROR] unknown option '--no-beep'
  16. Caffe 学习:Eltwise层
  17. jquery ui draggable,droppable 学习总结
  18. SpringBoot+JPA+cache入门
  19. CSS 布局:40个教程、技巧、例子和最佳实践
  20. win7 64位的 svchost.exe 占用内存过大的问题

热门文章

  1. 【手记】走近科学之为什么JObject不能调用LINQ扩展方法
  2. ok6410[000] ubuntu1604_64bit下安装wps
  3. 在vs2005中添加lib库的方法
  4. linux kfifo移植
  5. HDU 6118 度度熊的交易计划 【最小费用最大流】 (2017"百度之星"程序设计大赛 - 初赛(B))
  6. 怎么显示隐藏Mac上的隐藏文件
  7. set built-in function
  8. 【Java】DateUtil(1)
  9. Opencv:10个步骤检测出图片中条形码
  10. Oracle常用数据库表操作