下载并解压1.18.0版本的linux nginx
执行
./configure --prefix=/usr/local/nginx-1.18.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.
然后上网下载了pcre-8.44和pcre2-10.36的pcre rpm包 运行之后还是没用
继续网上检索 说执行yum -y install pcre-devel就可以解决 然而执行后提示
已加载插件:refresh-packagekit, security
设置安装进程
错误:Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
继续搜索错误:Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
结论是修改/etc/yum.repos.d的epel.repo文件里enable,从1改成0
改完之后再次执行
yum -y install pcre-devel
已加载插件:refresh-packagekit, security
设置安装进程
No package pcre-devel available.
错误:无须任何处理
还是不行
继续检索 有说下载pcre包的 有说执行yum install epel-release的 可都没什么效果。。。
想升级一个nginx这么难! 有没有大神能够看出端倪!求指导! 在此提前感谢!
不知道你这个问题是否已经解决, 如果还没有解决的话: