您当前的位置: 首页 >  ar

qq_34412985

暂无认证

  • 0浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

编译Nginx提示gzip module requires the zlib library

qq_34412985 发布时间:2020-07-26 00:00:05 ,浏览量:0

新手在尝试安装nginx时,常常会因为缺少依赖组件,导致nginx相应模块无法安装,在执行“./configure”时常出现错误。 若在“./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

关注
打赏
1653291990
查看更多评论
立即登录/注册

微信扫码登录

0.0867s