lnmp1.6升级nignx1.16.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.
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
解决办法:
centos的话 yum install pcre-devel
debian/ubuntu的话 apt-get install libpcre3-dev
安装成功后再升级
页:
[1]