VPS侦探论坛

 找回密码
 注册
查看: 4023|回复: 7

PHP 7.4已经发布了,为啥升级失败啊~

[复制链接]
发表于 2019-11-28 22:16:41 | 显示全部楼层 |阅读模式

如题,升级失败咋整啊~
日志如下:
  1. Current PHP Version:7.2.24
  2. You can get version number from http://www.php.net/
  3. Please enter a PHP Version you want:
  4. Press any key to start...or Press Ctrl+c to cancel

  5. Notice: php-7.4.0.tar.bz2 not found!!!download now...
  6. --2019-11-28 21:56:18--  http://php.vpser.net/php-7.4.0.tar.bz2
  7. Resolving php.vpser.net (php.vpser.net)... 101.37.67.17
  8. Connecting to php.vpser.net (php.vpser.net)|101.37.67.17|:80... connected.
  9. HTTP request sent, awaiting response... 302 Moved Temporarily
  10. Location: http://175.6.32.4:88/php/php-7.4.0.tar.bz2 [following]
  11. --2019-11-28 21:56:18--  http://175.6.32.4:88/php/php-7.4.0.tar.bz2
  12. Connecting to 175.6.32.4:88... connected.
  13. HTTP request sent, awaiting response... 404 Not Found
  14. 2019-11-28 21:56:18 ERROR 404: Not Found.

  15. --2019-11-28 21:56:18--  https://www.php.net/distributions/php-7.4.0.tar.bz2
  16. Resolving www.php.net (www.php.net)... 185.85.0.29, 2a02:cb40:200::1ad
  17. Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected.
  18. HTTP request sent, awaiting response... 200 OK
  19. Length: 12704405 (12M) [application/octet-stream]
  20. Saving to: ‘php-7.4.0.tar.bz2’


  21. 0% [                                       ] 0           --.-K/s              
  22. 0% [                                       ] 40,687       182KB/s            
  23. 0% [                                       ] 57,071      85.1KB/s            
  24. 0% [                                       ] 122,607      137KB/s            
  25. 1% [                                       ] 155,375     99.3KB/s            
  26. 1% [                                       ] 171,759     68.5KB/s            
  27. 1% [                                       ] 237,295     86.9KB/s            
  28. 2% [>                                      ] 351,983      119KB/s            
  29. 3% [>                                      ] 384,751      113KB/s  eta 1m 46s
  30. 3% [>                                      ] 450,287      124KB/s  eta 1m 46s
  31. 3% [>                                      ] 483,055      125KB/s  eta 1m 46s
  32. 4% [>                                      ] 515,823      120KB/s  eta 1m 46s
  33. 6% [=>                                     ] 794,351      167KB/s  eta 69s   
  34. 6% [=>                                     ] 810,735      156KB/s  eta 69s   
  35. 8% [==>                                    ] 1,105,647    196KB/s  eta 69s   
  36. 9% [==>                                    ] 1,269,487    194KB/s  eta 57s   
  37. 12% [===>                                   ] 1,531,631    227KB/s  eta 57s   
  38. 13% [====>                                  ] 1,777,391    247KB/s  eta 57s   
  39. 14% [====>                                  ] 1,793,775    222KB/s  eta 48s   
  40. 17% [=====>                                 ] 2,219,759    267KB/s  eta 48s   
  41. 21% [=======>                               ] 2,727,663    311KB/s  eta 48s   
  42. 21% [=======>                               ] 2,744,047    308KB/s  eta 48s   
  43. 22% [=======>                               ] 2,858,735    320KB/s  eta 32s   
  44. 25% [========>                              ] 3,186,415    341KB/s  eta 32s   
  45. 25% [=========>                             ] 3,301,103    368KB/s  eta 32s   
  46. 28% [=========>                             ] 3,563,247    434KB/s  eta 32s   
  47. 28% [==========>                            ] 3,677,935    358KB/s  eta 30s   
  48. 32% [===========>                           ] 4,153,071    386KB/s  eta 30s   
  49. 36% [=============>                         ] 4,579,055    408KB/s  eta 24s   
  50. 36% [=============>                         ] 4,611,823    396KB/s  eta 24s   
  51. 38% [==============>                        ] 4,890,351    410KB/s  eta 24s   
  52. 39% [==============>                        ] 4,988,655    417KB/s  eta 23s   
  53. 42% [===============>                       ] 5,447,407    433KB/s  eta 23s   
  54. 43% [===============>                       ] 5,496,559    436KB/s  eta 23s   
  55. 47% [=================>                     ] 6,069,999    453KB/s  eta 18s   
  56. 48% [==================>                    ] 6,201,071    469KB/s  eta 18s   
  57. 52% [===================>                   ] 6,643,439    476KB/s  eta 18s   
  58. 53% [===================>                   ] 6,823,663    470KB/s  eta 15s   
  59. 55% [====================>                  ] 6,987,503    484KB/s  eta 15s   
  60. 59% [======================>                ] 7,544,559    496KB/s  eta 13s   
  61. 61% [======================>                ] 7,773,935    470KB/s  eta 13s   
  62. 61% [======================>                ] 7,806,703    435KB/s  eta 13s   
  63. 62% [=======================>               ] 7,954,159    438KB/s  eta 13s   
  64. 62% [=======================>               ] 8,003,311    422KB/s  eta 13s   
  65. 63% [=======================>               ] 8,068,847    410KB/s  eta 12s   
  66. 64% [=======================>               ] 8,134,383    393KB/s  eta 12s   
  67. 64% [========================>              ] 8,150,767    455KB/s  eta 12s   
  68. 64% [========================>              ] 8,216,303    404KB/s  eta 12s   
  69. 65% [========================>              ] 8,298,223    396KB/s  eta 12s   
  70. 65% [========================>              ] 8,330,991    396KB/s  eta 12s   
  71. 68% [=========================>             ] 8,642,287    409KB/s  eta 12s   
  72. 70% [==========================>            ] 9,002,735    449KB/s  eta 10s   
  73. 72% [===========================>           ] 9,199,343    400KB/s  eta 10s   
  74. 72% [===========================>           ] 9,232,111    398KB/s  eta 9s     
  75. 73% [===========================>           ] 9,395,951    363KB/s  eta 9s     
  76. 78% [=============================>         ] 9,936,623    408KB/s  eta 9s     
  77. 79% [==============================>        ] 10,100,463   387KB/s  eta 7s     
  78. 80% [==============================>        ] 10,280,687   397KB/s  eta 7s     
  79. 82% [===============================>       ] 10,542,831   429KB/s  eta 7s     
  80. 84% [===============================>       ] 10,739,439   386KB/s  eta 7s     
  81. 85% [================================>      ] 10,804,975   357KB/s  eta 5s     
  82. 85% [================================>      ] 10,821,359   385KB/s  eta 5s     
  83. 87% [=================================>     ] 11,165,423   410KB/s  eta 5s     
  84. 90% [==================================>    ] 11,525,871   438KB/s  eta 3s     
  85. 92% [===================================>   ] 11,804,399   464KB/s  eta 3s     
  86. 97% [====================================>  ] 12,345,071   495KB/s  eta 1s     
  87. 97% [====================================>  ] 12,377,839   497KB/s  eta 1s     
  88. 98% [=====================================> ] 12,492,527   531KB/s  eta 1s     
  89. 100%[======================================>] 12,704,405   557KB/s   in 30s   

  90. 2019-11-28 21:56:51 (411 KB/s) - ‘php-7.4.0.tar.bz2’ saved [12704405/12704405]

  91. Download php-7.4.0.tar.bz2 successfully!
  92. +-------------------------------------------+
  93. |    Manager for LNMP, Written by Licess    |
  94. +-------------------------------------------+
  95. |              https://lnmp.org             |
  96. +-------------------------------------------+
  97. Stoping LNMP...
  98. Stoping nginx...  done
  99. Shutting down MySQL. SUCCESS!
  100. Gracefully shutting down php-fpm . done
  101. Installing Dependent for PHP...
  102. Loaded plugins: fastestmirror
  103. Loading mirror speeds from cached hostfile
  104. Package c-ares-devel-1.10.0-3.el7.x86_64 already installed and latest version
  105. Nothing to do
  106. Loaded plugins: fastestmirror
  107. Loading mirror speeds from cached hostfile
  108. Package libicu-devel-50.2-3.el7.x86_64 already installed and latest version
  109. Nothing to do
  110. Loaded plugins: fastestmirror
  111. Loading mirror speeds from cached hostfile
  112. Package libxslt-1.1.28-5.el7.x86_64 already installed and latest version
  113. Nothing to do
  114. Loaded plugins: fastestmirror
  115. Loading mirror speeds from cached hostfile
  116. Package libxslt-devel-1.1.28-5.el7.x86_64 already installed and latest version
  117. Nothing to do
  118. Loaded plugins: fastestmirror
  119. Loading mirror speeds from cached hostfile
  120. Package xz-5.2.2-1.el7.x86_64 already installed and latest version
  121. Nothing to do
  122. Loaded plugins: fastestmirror
  123. Loading mirror speeds from cached hostfile
  124. Package expat-devel-2.1.0-10.el7_3.x86_64 already installed and latest version
  125. Nothing to do
  126. Loaded plugins: fastestmirror
  127. Loading mirror speeds from cached hostfile
  128. Package libzip-devel-0.10.1-8.el7.x86_64 already installed and latest version
  129. Nothing to do
  130. Loaded plugins: fastestmirror
  131. Loading mirror speeds from cached hostfile
  132. Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
  133. Nothing to do
  134. Loaded plugins: fastestmirror
  135. Loading mirror speeds from cached hostfile
  136. Package bzip2-devel-1.0.6-13.el7.x86_64 already installed and latest version
  137. Nothing to do
复制代码



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


lnmp1.6咱不支持php 7.4的升级,还没开始适配,即使输入了也是没法升级的,除非修改了脚本
目前暂未测试php 7.4,不清楚具体改动多少
configure: error: Package requirements (sqlite3 > 3.7.4) were not met:
按上面信息看的话是缺少sqlite-devel包,但这个sqlite的必须是大于 3.7.4的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-11-28 23:28:20 | 显示全部楼层

修改升级脚本后,升级PHP 7.4时,也出错了... 日志如下:

  1. checking for statfs... yes
  2. checking for statvfs... yes
  3. checking for std_syslog... no
  4. checking for strcasecmp... yes
  5. checking for strfmon... yes
  6. checking for strnlen... yes
  7. checking for strptime... yes
  8. checking for strtok_r... yes
  9. checking for symlink... yes
  10. checking for tzset... yes
  11. checking for unlockpt... yes
  12. checking for unsetenv... yes
  13. checking for usleep... yes
  14. checking for utime... yes
  15. checking for vasprintf... yes
  16. checking for asprintf... yes
  17. checking for nanosleep... yes
  18. checking for memmem... yes
  19. checking how many arguments gethostbyname_r() takes... six
  20. checking for nanosleep in -lrt... yes
  21. checking for getaddrinfo... yes
  22. checking for __sync_fetch_and_add... yes
  23. checking for strlcat... no
  24. checking for strlcpy... no
  25. checking for explicit_bzero... no
  26. checking for getopt... yes
  27. checking for working alloca.h... yes
  28. checking for alloca... yes
  29. checking for type of reentrant time-related functions... POSIX
  30. checking for in_addr_t... yes
  31. checking for crypt_r... no
  32. checking for asm goto... yes
  33. checking whether compiler supports VLA... yes
  34. checking whether to enable valgrind support... yes
  35. checking for valgrind... no

  36. General settings
  37. checking whether to include gcov symbols... no
  38. checking whether to include debugging symbols... no
  39. checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY... no
  40. checking layout of installed files... PHP
  41. checking path to configuration file... /usr/local/php/etc
  42. checking where to scan for configuration files... /usr/local/php/conf.d
  43. checking whether to enable PHP's own SIGCHLD handler... no
  44. checking whether to explicitly link against libgcc... no
  45. checking whether to enable short tags by default... yes
  46. checking whether to enable dmalloc... no
  47. checking whether to enable IPv6 support... yes
  48. checking whether to enable DTrace support... no
  49. checking how big to make fd sets... using system default

  50. Configuring extensions
  51. checking io.h usability... no
  52. checking io.h presence... no
  53. checking for io.h... no
  54. checking for strtoll... yes
  55. checking for atoll... yes
  56. checking whether to build with LIBXML support... yes
  57. checking for libxml-2.0 >= 2.7.6... yes
  58. checking for OpenSSL support... yes
  59. checking for Kerberos support... no
  60. checking whether to use system default cipher list instead of hardcoded value... no
  61. checking for RAND_egd... no
  62. checking for openssl >= 1.0.1... yes
  63. checking for PCRE library to use... bundled
  64. checking whether to enable PCRE JIT functionality... yes
  65. checking whether to enable the SQLite3 extension... yes
  66. checking for sqlite3 > 3.7.4... no
  67. configure: error: Package requirements (sqlite3 > 3.7.4) were not met:

  68. No package 'sqlite3' found

  69. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  70. installed software in a non-standard prefix.

  71. Alternatively, you may set the environment variables SQLITE_CFLAGS
  72. and SQLITE_LIBS to avoid the need to call pkg-config.
  73. See the pkg-config man page for more details.
  74. make: *** No targets specified and no makefile found.  Stop.
  75. make: *** No targets specified and no makefile found.  Stop.
  76. make: *** No rule to make target `install'.  Stop.
  77. Copy new php configure file...
  78. Modify php.ini......
  79. include/php.sh: line 86: pear: command not found
  80. include/php.sh: line 87: pecl: command not found
  81. include/php.sh: line 92: php: command not found
  82. curl: (23) Failed writing body (0 != 16133)
  83. Install ZendGuardLoader for PHP 7...
  84. unavailable now.
  85. Creating new php-fpm configure file...
  86. Copy php-fpm init.d file...
  87. cp: cannot stat ‘/root/lnmp1.6/src/php-7.4.0/sapi/fpm/init.d.php-fpm’: No such file or directory
  88. chmod: cannot access ‘/etc/init.d/php-fpm’: No such file or directory
  89. +-------------------------------------------+
  90. |    Manager for LNMP, Written by Licess    |
  91. +-------------------------------------------+
  92. |              https://lnmp.org             |
  93. +-------------------------------------------+
  94. Starting LNMP...
  95. Starting nginx...  done
  96. Starting MySQL.. SUCCESS!
  97. /bin/lnmp: line 27: /etc/init.d/php-fpm: No such file or directory
  98. ======== upgrade php failed ======
  99. upgrade php log: /root/upgrade_lnmp_php.log
  100. You upload upgrade_lnmp_php.log to LNMP Forum for help.
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-11-29 10:45:44 | 显示全部楼层



licess 发表于 2019-11-29 09:11
lnmp1.6咱不支持php 7.4的升级,还没开始适配,即使输入了也是没法升级的,除非修改了脚本
目前暂未测试php ...

谢谢,期待PHP7.4支持哈~
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-11-29 11:11:01 | 显示全部楼层

licess 发表于 2019-11-29 09:11
lnmp1.6咱不支持php 7.4的升级,还没开始适配,即使输入了也是没法升级的,除非修改了脚本
目前暂未测试php ...

在盆友指点下升级sqlite3后 PHP7.4升级成功了~

军哥运维代购:http://shop63846532.taobao.com/

发表于 2019-11-30 10:05:33 | 显示全部楼层

lxtx 发表于 2019-11-29 11:11
在盆友指点下升级sqlite3后 PHP7.4升级成功了~

朋友,你是怎么升级成功的?本人是菜鸟,能给一下详细的过程吗?包括每一步的命令。
谢谢!
 楼主| 发表于 2019-12-2 15:21:28 | 显示全部楼层

421224428 发表于 2019-11-30 10:05
朋友,你是怎么升级成功的?本人是菜鸟,能给一下详细的过程吗?包括每一步的命令。
谢谢! ...

1.升级sqlite3:
yum install libsqlite3x-devel oniguruma-devel -y

2.修改PHP升级脚本:/root/lnmp1.6/include/upgrade_php.sh
将最后面的7.3修改为7.[34]

3.执行PHP升级脚本。OVER
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-12-4 18:06:50 | 显示全部楼层

lxtx 发表于 2019-12-2 15:21
1.升级sqlite3:
yum install libsqlite3x-devel oniguruma-devel -y

老兄 安装成功后gd库没了,有方法安装上么
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-20 19:24 , Processed in 0.028827 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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