1.3升级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.

make: *** No rule to make target ‘build’, needed by ‘default’.  Stop.
cp: cannot stat ‘objs/nginx’: No such file or directory
Test nginx configure file…
include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
upgrade…
make: *** No rule to make target ‘upgrade’.  Stop.
======== upgrade nginx completed ======
Program will display Nginx Version……
include/upgrade_nginx.sh: line 65: /usr/local/nginx/sbin/nginx: No such file or directory《中卫网友》:从1.10.3升级到1.12.0
《红河哈尼族彝族自治州网友》:估计可能你系统上的pcre被删除了,centos的话 yum install pcre-devel
debian/ubuntu的话 apt-get install libpcre3-dev
安装成功后再升级

发表评论

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