首页 > 其他 > 详细

Centos上安装nginx报错

时间:2015-02-20 23:10:00      阅读:504      评论:0      收藏:0      [点我收藏+]

编译时候如下错误:

./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=<path> option.


重新编译,指定 --with-pcre, 其中 --with-pcre=/vagrant/download/pcre-8.35 是pcre是的源码目录,不是安装目录

[vagrant@localhost nginx-1.7.0]$ ./configure --prefix=/usr/local/nginx --with-pcre=/vagrant/download/pcre-8.35


这样就不报错了。


Centos上安装nginx报错

原文:http://blog.csdn.net/angel22xu/article/details/43891115

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!