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

更新时间:2019-12-07    来源:nginx    手机版     字体:

【www.bbyears.com--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 /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


即可解决

本文来源:http://www.bbyears.com/caozuoxitong/82603.html