nginx 1.12.0升级1.12.1失败

问答中心分类: OneinStacknginx 1.12.0升级1.12.1失败
username asked 7 年 ago
make -f objs/Makefile
make[1]: Entering directory `/root/oneinstack/src/nginx-1.12.1'
cd ../pcre-8.40 \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared --enable-jit
/bin/sh: line 0: cd: ../pcre-8.40: No such file or directory
make[1]: *** [../pcre-8.40/Makefile] Error 1
make[1]: Leaving directory `/root/oneinstack/src/nginx-1.12.1'
make: *** [build] Error 2
Upgrade Nginx failed!
 
请求处理

3 Answers
oneinstack answered 7 年 ago

确认下载了pcre-8.40.tar.gz

cd oneinstack/src
wget http://mirrors.linuxeye.com/oneinstack/src/pcre-8.41.tar.gz

再执行升级即可

username answered 7 年 ago
Configuration summary + using PCRE library: ../pcre-8.40 + using OpenSSL library: ../openssl-1.0.2l + using system zlib library nginx path prefix: \"/usr/local/nginx\" nginx binary file: \"/usr/local/nginx/sbin/nginx\" nginx modules path: \"/usr/local/nginx/modules\" nginx configuration prefix: \"/usr/local/nginx/conf\" nginx configuration file: \"/usr/local/nginx/conf/nginx.conf\" nginx pid file: \"/usr/local/nginx/logs/nginx.pid\" nginx error log file: \"/usr/local/nginx/logs/error.log\" nginx http access log file: \"/usr/local/nginx/logs/access.log\" nginx http client request body temporary files: \"client_body_temp\" nginx http proxy temporary files: \"proxy_temp\" nginx http fastcgi temporary files: \"fastcgi_temp\" nginx http uwsgi temporary files: \"uwsgi_temp\" nginx http scgi temporary files: \"scgi_temp\" make -f objs/Makefilemake[1]: Entering directory `/root/oneinstack/src/nginx-1.12.1\'cd ../pcre-8.40 \\&& if [ -f Makefile ]; then make distclean; fi \\&& CC=\"cc\" CFLAGS=\"-O2 -fomit-frame-pointer -pipe \" \\./configure --disable-shared --enable-jit/bin/sh: line 0: cd: ../pcre-8.40: No such file or directorymake[1]: *** [../pcre-8.40/Makefile] Error 1make[1]: Leaving directory `/root/oneinstack/src/nginx-1.12.1\'make: *** [build] Error 2Upgrade Nginx failed!   还是一样啊!!!什么情况

oneinstack answered 7 年 ago

提前解压下啊。。

cd oneinstack/src
wget http://mirrors.linuxeye.com/oneinstack/src/pcre-8.41.tar.gz
tar xzf pcre-8.41.tar.gz