./configure:错误:HTTP gzip模块需要zlib库

时间:2017-07-08 08:28:57

标签: meteor docker 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,所以用brew安装了zlib。我已经搜索了很长时间但很难找到这个错误。

由于此错误,它也无法在docker.io

中构建自动化

2 个答案:

答案 0 :(得分:1)

您在

中引用的Dockerfile

https://github.com/meteorhacks/mup-frontend-server/blob/master/Dockerfile

开头

FROM debian

所以你需要在Dockerfile中有这样一行,在你需要zlib的地方之前

RUN apt-get update && apt-get install -y \ zlib \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/*

在一次运行中,您需要更新,安装和清理

答案 1 :(得分: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