lnmpa1.4升级nginx失败
Current Nginx Version:.sh: line 5: /usr/local/nginx/sbin/nginx: No such file or directoryYou can get version number from http://nginx.org/en/download.html
Please enter nginx version you want, (example: 1.7.8): +---------------------------------------------------------+
| You will upgrade nginx version to 1.8.1
+---------------------------------------------------------+
[0;32mPress any key to start...or Press Ctrl+c to cancel[0m
============================check files==================================
nginx-1.8.1.tar.gz
============================check files==================================
openssl-1.0.2l.tar.gz
Uncompress nginx-1.8.1.tar.gz...
cd nginx-1.8.1...
checking for OS
+ Linux 3.10.0-327.36.3.el7.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
make: *** No rule to make target `build', needed by `default'.Stop.
mv: cannot stat '/usr/local/nginx/sbin/nginx': No such file or directory
cp: cannot stat 'objs/nginx': No such file or directory
Test nginx configure file...
include/upgrade_nginx.sh: line 59: /usr/local/nginx/sbin/nginx: No such file or directory
upgrade...
make: *** No rule to make target `upgrade'.Stop.
Checking ...
[0;31mError: Nginx upgrade failed.[0m 看提示是编译器没有了,如果你成功安装了lnmp这些肯定都有,可能你又卸载了
centos的话可以尝试:yum install gcc gcc-c++ 安装一下
debian/ubuntu的话可以:apt-get install build-essentialgcc g++ make 安装一下 还有其他办法升级吗?
还提示Current Nginx Version:.sh: line 5: /usr/local/nginx/sbin/nginx: No such file or directory
回复 3# 的帖子
nginx存在不存在,不影响,直接填版本号升级就行了
页:
[1]