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



我是码头工人/容器的新手。

我正在尝试使用以下命令运行一个分支,其中包含我为 mup 前端的 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。我已经搜索了很长时间,但找不到太多关于这个错误的信息。

由于此错误,它也无法在自动化的基础上构建 docker.io

您引用的 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/*

在一次运行中,您可以更新,安装和清理

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

最新更新