Centos编译Nginx错误提示

我们在编译Centos手工编译Nginx时候,会出现各种编译不通过的错误提示,一般情况下都是系统缺少组件造成的,我这里把平时遇到的错误提示都总结下:

一、错误提示./configure: error: the HTTP rewrite module requires the PCRE library

原因:PCRE组件没有安装

解决办法:安装pcre-devel

yum -y install pcre-devel openssl openssl-devel

或者手工编译安装PCRE组件

cd /tmpwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gztar zxf pcre-8.32.tar.gzcd pcre-8.32./configuremake && make install

即可解决

相关文章:

你感兴趣的文章:

标签云: