前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >CentOS上安装Nginx报错解决一例

CentOS上安装Nginx报错解决一例

作者头像
星哥玩云
发布2022-07-04 13:52:03
4860
发布2022-07-04 13:52:03
举报
文章被收录于专栏:开源部署

CentOS上编译安装装Nginx时候报如下错误:

./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=/linuxidc/download/pcre-8.35 是pcre是的源码目录,不是安装目录

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

这样就不报错了。

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档