mod_deflate has been requested but can not be built due to prerequisite failures

mod_deflate has been requested but can not be built due to prerequisite failures - 56553655 - ITeye博客  https://www.iteye.com/blog/56553655-770976

在Ubuntu下安装apache2.0.61,采取的步骤:

 

Java代码  收藏代码
  1. $wget http://archive.apache.org/dist/httpd/httpd-2.0.61.tar.gz  
  2. $tar -xvfz httpd-2.0.61.tar.gz   
  3. $./configure --prefix=/usr/local/apache2.0.61/ --enable-mods-shared=all --enable-proxy --enable-deflate --with-mpm=worker   

 

 到这一步的时候,报了如下错误:

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

    网上查了一下原因,是因为zlib没有安装,我这里是Ubuntu,通过这样安装即可:

    sudo apt-get install zlib1g-dev 

 

    如果是centos的,参考这里:http://hi.baidu.com/uroot/blog/item/1e34a6096020b7206b60fb17.html

    这个不知道是什么操作系统,也是报这样的错误:http://hi.baidu.com/7827100/blog/item/1cdf933e7519f3f3828b1359.html

posted @   ingemar,fang  阅读(109)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示