编译Nginx提示gzip module requires the zlib library

新手在尝试安装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_moduleoption, or install the zlib library into the system, or build the zlib
librarystatically from the source with nginx by using –with-zlib=<path> option.

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

yum install -y zlib-devel

转载于:https://blog.51cto.com/08jw3/1246956

编译Nginx提示gzip module requires the zlib library相关推荐

  1. ./configure: error: the HTTP gzip module requires the zlib library.

    完整问题复现如下: ./configure: error: the HTTP gzip module requires the zlib library. You can either disable ...

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

    安装 zlib-devel yum install -y zlib-devel

  3. unbuntu nginx安装详解 /configure: error: the HTTP rewrite module requires the PCRE library

    1 介绍 官网:https://nginx.org/en/download.html windows版本就不多说了,原理一模一样,下面直接介绍linux 下载: wget https://nginx. ...

  4. ./configure: error: the HTTP rewrite module requires the PCRE library

    报错 ./configure: error: the HTTP rewrite module requires the PCRE library. 解决方法 安装PRCE 官网:https://ftp ...

  5. OpenCV3.4.5带GPU编译error: #error This file requires compiler and library support for the ISO C++ 2011

    error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This su ...

  6. centos7 安装nginx报错./configure: error: the HTTP rewrite module requires the PCRE library

    安装pcre-devel解决问题 yum -y install pcre-devel

  7. ngingx安装错误 ./configure: error: the HTTP rewrite module requires the PCRE library.

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1.  ngnix 安装报错: 2. 解决: 安装pcre-devel解决问题,运行命令 yum - ...

  8. Ubuntu11.10 源码编译 Nginx

    一.序言 兔尾的时候,将 wubi 安装的 ubuntu 系统给卸载了,原因是容量不够了,捣鼓了下扩展也捣鼓不出来,而且总感觉系统运行很慢,所以一不做二不休就将系统给卸载了,重新整过,而且整成了独立得 ...

  9. 编译nginx时的两个报错

    为内部一台测试机./configure编译nginx时遇到报错,记录下来 ./configure \ --prefix=/usr/local/nginx \ 指定安装位置 --with-http_fl ...

最新文章

  1. 上传漏洞学习——upload-labs 闯关(二)
  2. 记一次热更新上传补丁包失败问题
  3. 参数方程求二阶偏导_偏微分方程
  4. Android之如何让Android studio编译更快
  5. 一次性计划任务at与周期性计划任务crontab
  6. mysql 多表删除
  7. HTC不认输!将再战智能手机市场,明年推出5G新机
  8. 多线程编程(14) - 多线程同步之 WaitableTimer (等待定时器对象)
  9. 极客学院 HTML5
  10. vue.js原生组件化开发(一)——组件开发基础
  11. LINUX虚拟机安装增强功能时报错:/sbin/mount.vboxsf: mounting failed with the error: No such device
  12. SQL查询中笛卡尔积的巧妙使用(文末福利)
  13. 申请SSL证书,并给域名配置SSL证书,并部署服务器;SSL证书的下载和安装
  14. MAC系统下测试IP+端口
  15. 1. 在 SAP ABAP 事物码 SEGW 里创建 SAP OData 项目
  16. 平价蓝牙耳机里面性价比高推荐?隐形蓝牙耳机超小推荐
  17. 将HTML的文件打包成为App,编程工具Hbuilder
  18. https攻击工具详解(arp欺骗、中间人攻击)(openssl+sslscan+sslsplit )
  19. 趋势指标(一)MACD指标
  20. n76e003引脚图_老司机带你入门新塘N76E003单片机

热门文章

  1. jsp:include
  2. css中auto的用法
  3. 服务器控件开发之复杂属性
  4. URL中使用IPv4,IPv6和主机名
  5. frontend-maven-plugin插件问题解决
  6. 常见的6种线程池及简单使用
  7. JAVA设计模式 - 单例模式
  8. 用Java实现一个简单的链表迭代器
  9. JDK的下载、安装和配置
  10. 服务器2016修改时间,服务器时间错误