yxly33126 发表于 2019-11-2 01:32:25

Error: Nginx upgrade failed.

# php -v
PHP 7.3.10 (cli) (built: Oct2 2019 18:52:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.10, Copyright (c) 1998-2018 Zend Technologies
# nginx -v
nginx version: nginx/1.17.4
# ls
bbr.shgit-2.23.0lnmp1.6lnmp1.6.tar.gzssr.shv2.23.0.tar.gz
# cd lnmp1.6
# ls
addons.shconf   init.d      License    pureftpd.shsrc    uninstall.sh       upgrade.sh
ChangeLogincludeinstall.shlnmp.confREADME       toolsupgrade1.x-1.6.sh
# ./upgrade.sh
+-----------------------------------------------------------------------+
|            Upgrade script for LNMP V1.6, Written by Licess            |
+-----------------------------------------------------------------------+
|   A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP   |
+-----------------------------------------------------------------------+
|         For more information please visit https://lnmp.org          |
+-----------------------------------------------------------------------+
1: Upgrade Nginx
2: Upgrade MySQL
3: Upgrade MariaDB
4: Upgrade PHP for LNMP
5: Upgrade PHP for LNMPA or LAMP
6: Upgrade MySQL to MariaDB
7: Upgrade phpMyAdmin
exit: Exit current script
###################################################
Enter your choice (1, 2, 3, 4, 5, 6, 7 or exit): 1
Current Nginx Version:1.17.4
You can get version number from http://nginx.org/en/download.html
Please enter nginx version you want, (example: 1.14.0): 1.17.5
+---------------------------------------------------------+
|    You will upgrade nginx version to 1.17.5
+---------------------------------------------------------+

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

============================check files==================================
Notice: nginx-1.17.5.tar.gz not found!!!download now......
--2019-11-02 01:28:59--http://nginx.org/download/nginx-1.17.5.tar.gz
Resolving nginx.org (nginx.org)... 2001:1af8:4060:a004:21::e3, 62.210.92.35, 95.211.80.227
Connecting to nginx.org (nginx.org)|2001:1af8:4060:a004:21::e3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1036056 (1012K)
Saving to: ‘nginx-1.17.5.tar.gz’

100%[======================================>] 1,036,056    879KB/s   in 1.2s   

2019-11-02 01:29:01 (879 KB/s) - ‘nginx-1.17.5.tar.gz’ saved

Download nginx-1.17.5.tar.gz successfully!
============================check files==================================
openssl-1.1.1c.tar.gz
Uncompress nginx-1.17.5.tar.gz...
cd nginx-1.17.5...
include/upgrade_nginx.sh: line 55: gcc: command not found
checking for OS
+ Linux 5.3.2-1.el7.elrepo.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.
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 72: /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 发表于 2019-11-2 10:45:58

你系统上连最最基本的gcc-++都没肯定是无法安装
既然已经安装成功了lnmp,肯定是都已经安装了gcc、gcc-++、make等依赖包
肯定是你进行某些操作的时候删掉了
可以根据你什么linux发行版使用yum或apt-get命令再重新进行安装
页: [1]
查看完整版本: Error: Nginx upgrade failed.