最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Nginx编译安装错误error: the HTTP gzip module requires the zlib library
时间:2022-06-30 18:41:25 编辑:袖梨 来源:一聚教程网
下载后,解包,并进入nginx:
tar -zxf nginx-1.4.7.tar.gz
cd nginx-1.4.7
开始nginx安装:
./configure
make
make install
若在“./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=
则需要安装“zlib-devel”即可。SSH执行以下命令:
代码如下 | 复制代码 |
yum install -y zlib-devel |
然后再进行nginx的编译。表示问题即可解决。
像还有一些其它组件错误如:
You need a C++ compiler for C++ support
缺少c++编译器的原因
yum install -y gcc gcc-c++
make[1]: *** [/usr/local/pcre/Makefile] Error 127.pcre指向错误
指向源码包,不是编译安装后的包,所以
./configure –prefix=/export/lnmp/nginx-1.4.7 –with-pcre=../pcre-8.34
好了我在使用nginx编译安装时碰到几大问题都总结了一下,希望能帮助到各位。
相关文章
- 大奉打更人手游平民职业怎么选 最适合平民的四大职业推荐 07-08
- 顶级专家发布重大看涨以太坊(ETH)预测 07-08
- 碳碳岛配额怎么安排 配额管理技巧详解 07-08
- 洛克王国世界内测资格怎么申请 内测资格获取方法 07-08
- 王者荣耀世界什么时候公测 最新公测时间介绍 07-08
- 金铲铲之战s14战略超频猫阵容搭配指南 07-08