2017-07-08 61 views
0

我是码头工人/容器的新手。./configure:error:HTTP gzip模块需要zlib库

我试图运行与我曾尝试使用下面的命令放在为mup-frontend OpenSSL的漏洞的修复分叉:

docker build ./ 

它编译成一个点,则错误与

./configure: error: the HTTP gzip module requires the zlib library. 
You can either disable the module by using --without-http_gzip_module 
option, or install the zlib library into the system, or build the zlib library 
statically from the source with nginx by using --with-zlib=<path> option. 

我正在运行一个mac,所以安装了zlib和brew。我搜索了很长时间,但很难找到这个错误。

由于此错误,也不能建立在自动化docker.io

+0

你需要在容器中安装zlib的,所以你的Dockerfile将有安装的zlib – user2915097

+0

的我如何做到这一点本地?我习惯于使用npm模块,而不是使用apt-get等。 – Allreadyhome

回答

0
yum install -y httpd-devel pcre perl pcre-devel zlib zlib-devel GeoIP GeoIP-devel 


Download required packages 

cd 
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz 
wget http://zlib.net/zlib-1.2.5.tar.gz 
wget ftp://ftp.openssl.org/source/openssl-0.9.8o.tar.gz 

Now you have to untar these files. 
tar -xvf zlib-1.2.5.tar.gz 
tar -xvf pcre-8.10.tar.gz 
tar -xvf openssl-0.9.8o.tar.gz