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

 

 

你可能感兴趣的:(apache,html,centos,ubuntu,Blog)