`
56553655
  • 浏览: 197661 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

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

阅读更多

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

 

$wget http://archive.apache.org/dist/httpd/httpd-2.0.61.tar.gz
$tar -xvfz httpd-2.0.61.tar.gz 
$./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

 

 

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics