编译安装nginx却requires the PCRE library

编译安装nginx需要pcre包,未安装会有如下提示:

./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewrite_moduleoption, or install the PCRE library into the system, or build the PCRE librarystatically from the source with nginx by using --with-pcre=path> option.

登录后复制

需要安装pcre的devel包,pcre-devel。使用yum安装即可:(以下命令还带有ssl、zlib等依赖的安装)

yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel

登录后复制

以上就是编译安装nginx却requires the PCRE library的详细内容,更多请关注【创想鸟】其它相关文章!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。

发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/3166105.html

(0)
上一篇 2025年3月31日 03:16:35
下一篇 2025年3月31日 03:16:47

AD推荐 黄金广告位招租... 更多推荐

相关推荐

发表回复

登录后才能评论