iLear 发表于 2021-5-12 09:12:53

lnmp 1.7升级php失败(5.6.40→7.3.28)请协助分析下原因 谢谢

系统版本CentOS 8.3.2011,内核版本5.11.6-1.el8.elrepo.x86_64

用1.7脚本升级php 7.3.28时出现错误,日志如下,请帮忙分析下原因,我看到日志最后有个目录的文件不存在,反复尝试重新升级后发现这个目录一开始解压php安装包是有的,中间不知道什么原因被删除了,后面就出现了这个目录不存在的错误。

(帖子限制字符数,我只粘贴了日志报错的部分,完整日志见附件。)
1900K .......... .......... .......... .......... .......... 90% 6.24M 0s
1950K .......... .......... .......... .......... .......... 92%159M 0s
2000K .......... .......... .......... .......... .......... 94%211M 0s
2050K .......... .......... .......... .......... .......... 97%210M 0s
2100K .......... .......... .......... .......... .......... 99%209M 0s
2150K .......... ....                                       100%139M=0.9s

2021-05-12 09:04:03 (2.33 MB/s) - ‘/usr/local/bin/composer’ saved

Composer install successfully.
Install ZendGuardLoader for PHP 7...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat '/home/root/lnmp/lnmp1.7/src/php-7.3.28/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!
/usr/bin/lnmp: line 26: /etc/init.d/php-fpm: No such file or directory
======== upgrade php failed ======
upgrade php log: /root/upgrade_lnmp_php.log
You upload upgrade_lnmp_php.log to LNMP Forum for help.

licess 发表于 2021-5-12 20:03:21

checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/root/lnmp/lnmp1.7/src/php-7.3.28':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
是否安装了bbr之类的或动过内核?
https://bbs.vpser.net/thread-18875-1-1.html

iLear 发表于 2021-5-12 20:51:41

licess 发表于 2021-5-12 20:03
是否安装了bbr之类的或动过内核?
https://bbs.vpser.net/thread-18875-1-1.html

对,我更新了内核并开启了bbr,升级前要关闭bbr吗?

iLear 发表于 2021-5-12 23:26:42

licess 发表于 2021-5-12 20:03
是否安装了bbr之类的或动过内核?
https://bbs.vpser.net/thread-18875-1-1.html

尝试关了bbr,重新升级还是会报相同错误。

licess 发表于 2021-5-13 15:50:59

iLear 发表于 2021-5-12 23:26
尝试关了bbr,重新升级还是会报相同错误。

和关bbr没关系,是因为你改动内核把一些依赖包给删掉了

yum installkernel-headers
yum install glibc-headers gcc-c++
安装成功后再进行升级,不需要关闭bbr

iLear 发表于 2021-5-14 11:56:49

licess 发表于 2021-5-13 15:50
和关bbr没关系,是因为你改动内核把一些依赖包给删掉了

yum installkernel-headers


非常感谢,确实是这个问题,已经解决了。:handshake:handshake
页: [1]
查看完整版本: lnmp 1.7升级php失败(5.6.40→7.3.28)请协助分析下原因 谢谢