PHP 7.4已经发布了,为啥升级失败啊~
如题,升级失败咋整啊~日志如下:
Current PHP Version:7.2.24
You can get version number from http://www.php.net/
Please enter a PHP Version you want:
[0;32mPress any key to start...or Press Ctrl+c to cancel[0m
Notice: php-7.4.0.tar.bz2 not found!!!download now...
--2019-11-28 21:56:18--http://php.vpser.net/php-7.4.0.tar.bz2
Resolving php.vpser.net (php.vpser.net)... 101.37.67.17
Connecting to php.vpser.net (php.vpser.net)|101.37.67.17|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://175.6.32.4:88/php/php-7.4.0.tar.bz2
--2019-11-28 21:56:18--http://175.6.32.4:88/php/php-7.4.0.tar.bz2
Connecting to 175.6.32.4:88... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-11-28 21:56:18 ERROR 404: Not Found.
--2019-11-28 21:56:18--https://www.php.net/distributions/php-7.4.0.tar.bz2
Resolving www.php.net (www.php.net)... 185.85.0.29, 2a02:cb40:200::1ad
Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12704405 (12M)
Saving to: ‘php-7.4.0.tar.bz2’
0% [ ] 0 --.-K/s
0% [ ] 40,687 182KB/s
0% [ ] 57,071 85.1KB/s
0% [ ] 122,607 137KB/s
1% [ ] 155,375 99.3KB/s
1% [ ] 171,759 68.5KB/s
1% [ ] 237,295 86.9KB/s
2% [> ] 351,983 119KB/s
3% [> ] 384,751 113KB/seta 1m 46s
3% [> ] 450,287 124KB/seta 1m 46s
3% [> ] 483,055 125KB/seta 1m 46s
4% [> ] 515,823 120KB/seta 1m 46s
6% [=> ] 794,351 167KB/seta 69s
6% [=> ] 810,735 156KB/seta 69s
8% [==> ] 1,105,647 196KB/seta 69s
9% [==> ] 1,269,487 194KB/seta 57s
12% [===> ] 1,531,631 227KB/seta 57s
13% [====> ] 1,777,391 247KB/seta 57s
14% [====> ] 1,793,775 222KB/seta 48s
17% [=====> ] 2,219,759 267KB/seta 48s
21% [=======> ] 2,727,663 311KB/seta 48s
21% [=======> ] 2,744,047 308KB/seta 48s
22% [=======> ] 2,858,735 320KB/seta 32s
25% [========> ] 3,186,415 341KB/seta 32s
25% [=========> ] 3,301,103 368KB/seta 32s
28% [=========> ] 3,563,247 434KB/seta 32s
28% [==========> ] 3,677,935 358KB/seta 30s
32% [===========> ] 4,153,071 386KB/seta 30s
36% [=============> ] 4,579,055 408KB/seta 24s
36% [=============> ] 4,611,823 396KB/seta 24s
38% [==============> ] 4,890,351 410KB/seta 24s
39% [==============> ] 4,988,655 417KB/seta 23s
42% [===============> ] 5,447,407 433KB/seta 23s
43% [===============> ] 5,496,559 436KB/seta 23s
47% [=================> ] 6,069,999 453KB/seta 18s
48% [==================> ] 6,201,071 469KB/seta 18s
52% [===================> ] 6,643,439 476KB/seta 18s
53% [===================> ] 6,823,663 470KB/seta 15s
55% [====================> ] 6,987,503 484KB/seta 15s
59% [======================> ] 7,544,559 496KB/seta 13s
61% [======================> ] 7,773,935 470KB/seta 13s
61% [======================> ] 7,806,703 435KB/seta 13s
62% [=======================> ] 7,954,159 438KB/seta 13s
62% [=======================> ] 8,003,311 422KB/seta 13s
63% [=======================> ] 8,068,847 410KB/seta 12s
64% [=======================> ] 8,134,383 393KB/seta 12s
64% [========================> ] 8,150,767 455KB/seta 12s
64% [========================> ] 8,216,303 404KB/seta 12s
65% [========================> ] 8,298,223 396KB/seta 12s
65% [========================> ] 8,330,991 396KB/seta 12s
68% [=========================> ] 8,642,287 409KB/seta 12s
70% [==========================> ] 9,002,735 449KB/seta 10s
72% [===========================> ] 9,199,343 400KB/seta 10s
72% [===========================> ] 9,232,111 398KB/seta 9s
73% [===========================> ] 9,395,951 363KB/seta 9s
78% [=============================> ] 9,936,623 408KB/seta 9s
79% [==============================> ] 10,100,463 387KB/seta 7s
80% [==============================> ] 10,280,687 397KB/seta 7s
82% [===============================> ] 10,542,831 429KB/seta 7s
84% [===============================> ] 10,739,439 386KB/seta 7s
85% [================================> ] 10,804,975 357KB/seta 5s
85% [================================> ] 10,821,359 385KB/seta 5s
87% [=================================> ] 11,165,423 410KB/seta 5s
90% [==================================> ] 11,525,871 438KB/seta 3s
92% [===================================> ] 11,804,399 464KB/seta 3s
97% [====================================>] 12,345,071 495KB/seta 1s
97% [====================================>] 12,377,839 497KB/seta 1s
98% [=====================================> ] 12,492,527 531KB/seta 1s
100%[======================================>] 12,704,405 557KB/s in 30s
2019-11-28 21:56:51 (411 KB/s) - ‘php-7.4.0.tar.bz2’ saved
Download php-7.4.0.tar.bz2 successfully!
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx...done
Shutting down MySQL. SUCCESS!
Gracefully shutting down php-fpm . done
Installing Dependent for PHP...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package c-ares-devel-1.10.0-3.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libicu-devel-50.2-3.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libxslt-1.1.28-5.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libxslt-devel-1.1.28-5.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package xz-5.2.2-1.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package expat-devel-2.1.0-10.el7_3.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libzip-devel-0.10.1-8.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package bzip2-devel-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
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的 修改升级脚本后,升级PHP 7.4时,也出错了... 日志如下:
checking for statfs... yes
checking for statvfs... yes
checking for std_syslog... no
checking for strcasecmp... yes
checking for strfmon... yes
checking for strnlen... yes
checking for strptime... yes
checking for strtok_r... yes
checking for symlink... yes
checking for tzset... yes
checking for unlockpt... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utime... yes
checking for vasprintf... yes
checking for asprintf... yes
checking for nanosleep... yes
checking for memmem... yes
checking how many arguments gethostbyname_r() takes... six
checking for nanosleep in -lrt... yes
checking for getaddrinfo... yes
checking for __sync_fetch_and_add... yes
checking for strlcat... no
checking for strlcpy... no
checking for explicit_bzero... no
checking for getopt... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for type of reentrant time-related functions... POSIX
checking for in_addr_t... yes
checking for crypt_r... no
checking for asm goto... yes
checking whether compiler supports VLA... yes
checking whether to enable valgrind support... yes
checking for valgrind... no
[1mGeneral settings[m
checking whether to include gcov symbols... no
checking whether to include debugging symbols... no
checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY... no
checking layout of installed files... PHP
checking path to configuration file... /usr/local/php/etc
checking where to scan for configuration files... /usr/local/php/conf.d
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable dmalloc... no
checking whether to enable IPv6 support... yes
checking whether to enable DTrace support... no
checking how big to make fd sets... using system default
[1mConfiguring extensions[m
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking for strtoll... yes
checking for atoll... yes
checking whether to build with LIBXML support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking whether to use system default cipher list instead of hardcoded value... no
checking for RAND_egd... no
checking for openssl >= 1.0.1... yes
checking for PCRE library to use... bundled
checking whether to enable PCRE JIT functionality... yes
checking whether to enable the SQLite3 extension... yes
checking for sqlite3 > 3.7.4... no
configure: error: Package requirements (sqlite3 > 3.7.4) were not met:
No package 'sqlite3' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables SQLITE_CFLAGS
and SQLITE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
Copy new php configure file...
Modify php.ini......
include/php.sh: line 86: pear: command not found
include/php.sh: line 87: pecl: command not found
include/php.sh: line 92: php: command not found
curl: (23) Failed writing body (0 != 16133)
Install ZendGuardLoader for PHP 7...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat ‘/root/lnmp1.6/src/php-7.4.0/sapi/fpm/init.d.php-fpm’: No such file or directory
chmod: cannot access ‘/etc/init.d/php-fpm’: No such file or directory
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Starting LNMP...
Starting nginx...done
Starting MySQL.. SUCCESS!
/bin/lnmp: line 27: /etc/init.d/php-fpm: No such file or directory
[0;31m======== upgrade php failed ======[0m
[0;31mupgrade php log: /root/upgrade_lnmp_php.log[0m
You upload upgrade_lnmp_php.log to LNMP Forum for help.
licess 发表于 2019-11-29 09:11
lnmp1.6咱不支持php 7.4的升级,还没开始适配,即使输入了也是没法升级的,除非修改了脚本
目前暂未测试php ...
谢谢,期待PHP7.4支持哈~ licess 发表于 2019-11-29 09:11
lnmp1.6咱不支持php 7.4的升级,还没开始适配,即使输入了也是没法升级的,除非修改了脚本
目前暂未测试php ...
在盆友指点下升级sqlite3后 PHP7.4升级成功了~:lol lxtx 发表于 2019-11-29 11:11
在盆友指点下升级sqlite3后 PHP7.4升级成功了~
朋友,你是怎么升级成功的?本人是菜鸟,能给一下详细的过程吗?包括每一步的命令。
谢谢! 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.
3.执行PHP升级脚本。OVER lxtx 发表于 2019-12-2 15:21
1.升级sqlite3:
yum install libsqlite3x-devel oniguruma-devel -y
老兄 安装成功后gd库没了,有方法安装上么
页:
[1]