首页 > Web开发 > 详细

安装nginx报错configure: error:the HTTP gzip module requires the zlib library.

时间:2019-09-16 16:15:38      阅读:84      评论:0      收藏:0      [点我收藏+]

 

若在“./configure”后方加入了“–with-http_gzip_static_module”(添加gzip压缩模块)提示以下错误

 

./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= option.

 

则需要安装“zlib-devel”即可。SSH执行以下命令

yum install -y zlib-devel

然后再进行编译,问题即可解决

 

安装nginx报错configure: error:the HTTP gzip module requires the zlib library.

原文:https://www.cnblogs.com/kiko2014551511/p/11527541.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!