VPS侦探论坛

 找回密码
 注册
查看: 2835|回复: 1

Error: Nginx upgrade failed.

[复制链接]
发表于 2019-11-2 01:32:25 | 显示全部楼层 |阅读模式

  1. [root@usla-server ~]# php -v
  2. PHP 7.3.10 (cli) (built: Oct  2 2019 18:52:36) ( NTS )
  3. Copyright (c) 1997-2018 The PHP Group
  4. Zend Engine v3.3.10, Copyright (c) 1998-2018 Zend Technologies
  5. [root@usla-server ~]# nginx -v
  6. nginx version: nginx/1.17.4
  7. [root@usla-server ~]# ls
  8. bbr.sh  git-2.23.0  lnmp1.6  lnmp1.6.tar.gz  ssr.sh  v2.23.0.tar.gz
  9. [root@usla-server ~]# cd lnmp1.6
  10. [root@usla-server lnmp1.6]# ls
  11. addons.sh  conf     init.d      License    pureftpd.sh  src    uninstall.sh       upgrade.sh
  12. ChangeLog  include  install.sh  lnmp.conf  README       tools  upgrade1.x-1.6.sh
  13. [root@usla-server lnmp1.6]# ./upgrade.sh
  14. +-----------------------------------------------------------------------+
  15. |            Upgrade script for LNMP V1.6, Written by Licess            |
  16. +-----------------------------------------------------------------------+
  17. |     A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP     |
  18. +-----------------------------------------------------------------------+
  19. |           For more information please visit https://lnmp.org          |
  20. +-----------------------------------------------------------------------+
  21. 1: Upgrade Nginx
  22. 2: Upgrade MySQL
  23. 3: Upgrade MariaDB
  24. 4: Upgrade PHP for LNMP
  25. 5: Upgrade PHP for LNMPA or LAMP
  26. 6: Upgrade MySQL to MariaDB
  27. 7: Upgrade phpMyAdmin
  28. exit: Exit current script
  29. ###################################################
  30. Enter your choice (1, 2, 3, 4, 5, 6, 7 or exit): 1
  31. Current Nginx Version:1.17.4
  32. You can get version number from http://nginx.org/en/download.html
  33. Please enter nginx version you want, (example: 1.14.0): 1.17.5
  34. +---------------------------------------------------------+
  35. |    You will upgrade nginx version to 1.17.5
  36. +---------------------------------------------------------+

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

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

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

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

  48. Download nginx-1.17.5.tar.gz successfully!
  49. ============================check files==================================
  50. openssl-1.1.1c.tar.gz [found]
  51. Uncompress nginx-1.17.5.tar.gz...
  52. cd nginx-1.17.5...
  53. include/upgrade_nginx.sh: line 55: gcc: command not found
  54. checking for OS
  55. + Linux 5.3.2-1.el7.elrepo.x86_64 x86_64
  56. checking for C compiler ... not found

  57. ./configure: error: C compiler cc is not found

  58. make: *** No rule to make target `build', needed by `default'.  Stop.
  59. make: *** No rule to make target `build', needed by `default'.  Stop.
  60. cp: cannot stat ‘objs/nginx’: No such file or directory
  61. Test nginx configure file...
  62. include/upgrade_nginx.sh: line 72: /usr/local/nginx/sbin/nginx: No such file or directory
  63. upgrade...
  64. make: *** No rule to make target `upgrade'.  Stop.
  65. Checking ...
  66. Error: Nginx upgrade failed.
  67. [root@usla-server lnmp1.6]#
复制代码


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-11-2 10:45:58 | 显示全部楼层


你系统上连最最基本的gcc-++都没肯定是无法安装
既然已经安装成功了lnmp,肯定是都已经安装了gcc、gcc-++、make等依赖包
肯定是你进行某些操作的时候删掉了
可以根据你什么linux发行版使用yum或apt-get命令再重新进行安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 07:06 , Processed in 0.025468 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表