学无先后,达者为师

网站首页 编程语言 正文

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

作者:鲁尼的小宝贝 更新时间: 2022-03-15 编程语言
./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-devel解决问题
yum -y install pcre-devel

还有可能出现:

错误提示:./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library.   You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl=<path> options.

解决办法:

yum -y install openssl openssl-devel

 

 

然后安装 

./configure --prefix=/usr/local/nginx

 

make 

make install 

原文链接:https://blog.csdn.net/poem_2010/article/details/94739086

栏目分类
最近更新