赞
踩
报错代码1如下:
[root@xiaoming nginx-1.17.]# ./configure --prefix=/soft/nginx-1.17.
checking for OS
+ Linux 3.10.-.el7.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
解决方法:
源码包的编译用到了linux系统里的编译器,通常源码包都是用C语言开发的,这里提示缺少c语言编译器,只需要使用yum仓库安装gcc这个包即可
yum install -y gcc
报错代码2如下:
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre= option.
解决办法:
缺少pcre库文件
yum install -y pcre-devel
报错代码3:
./configure: error: the HTTP gzip module requires the zlib library.
<Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。