./configure: error: the HTTP rewrite module requires the PCRE library.

CentOS 6.5 下 安装 Tengine 执行配置命令

./configure 

时提示以下错误:

./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.

解决方法:

执行以下命令:

yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel
部分输出:

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.btte.net
 * updates: mirrors.zju.edu.cn
Setting up Install Process
Package zlib-1.2.3-29.el6.x86_64 already installed and latest version
No package openssl--devel available.
Resolving Dependencies
--> Running transaction check
---> Package openssl.x86_64 0:1.0.1e-15.el6 will be updated
---> Package openssl.x86_64 0:1.0.1e-42.el6_7.4 will be an update
---> Package pcre.x86_64 0:7.8-6.el6 will be updated
---> Package pcre.x86_64 0:7.8-7.el6 will be an update
---> Package pcre-devel.x86_64 0:7.8-7.el6 will be installed
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

相关文章:

CentOS 6.5 下 Tengine 安装记录

CentOS6.5下Nginx1.7.4安装记录


你可能感兴趣的:(./configure: error: the HTTP rewrite module requires the PCRE library.)