32604434 发表于 2017-6-14 00:17:50

lnmpa1.4升级nginx失败

Current Nginx Version:.sh: line 5: /usr/local/nginx/sbin/nginx: No such file or directory
You 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
+---------------------------------------------------------+

Press any key to start...or Press Ctrl+c to cancel

============================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 ...
Error: Nginx upgrade failed.

licess 发表于 2017-6-14 09:01:55

看提示是编译器没有了,如果你成功安装了lnmp这些肯定都有,可能你又卸载了
centos的话可以尝试:yum install gcc gcc-c++ 安装一下
debian/ubuntu的话可以:apt-get install build-essentialgcc g++ make 安装一下

32604434 发表于 2017-6-14 12:00:47

还有其他办法升级吗?
还提示Current Nginx Version:.sh: line 5: /usr/local/nginx/sbin/nginx: No such file or directory

licess 发表于 2017-6-14 14:19:10

回复 3# 的帖子

nginx存在不存在,不影响,直接填版本号升级就行了
页: [1]
查看完整版本: lnmpa1.4升级nginx失败