Centos编译Nginx错误configure: error: the HTTP rewrite module 解决办法

作者:简简单单 2015-07-30


我们在编译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 /tmp

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gz

tar zxf pcre-8.32.tar.gz

cd pcre-8.32

./configure

make && make install


即可解决

相关文章

精彩推荐