文章内容
2023/2/16 10:11:42,作 者: 黄兵
error: the HTTP gzip module requires the zlib library
今天在 Ubuntu 20.04 服务器编译安装 Nginx 的时候出现了如下错误:
./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.
出现问题的原因:
缺少 zlib-devel
依赖包。
解决方案:
安装 zlib-devel
依赖包。
Ubuntu 执行如下命令:
sudo apt-get install zlib1g-dev
其他操作系统可以参考下面资料。
参考资料:
1、nginx configure error the HTTP gzip module requires the zlib library
黄兵个人博客原创。
转载请注明出处:黄兵个人博客 - error: the HTTP gzip module requires the zlib library
./configure: error: the HTTP rewrite module requires the PCRE library.
./configure: error: the HTTP image filter module requires the GD library.
./configure: error: the HTTP image filter module requires the GD library.
评论列表