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

编译tengine的时候出现如下提示:

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

看问题应该是少了pcre,perl compatible regex。

办法不言而喻,安装pcre包就可以了。
yum -y install pcre-devel openssl openssl-devel

重新configure,make和make install 就可以了。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>