flyminco 发表于 2022-6-14 15:10:12

lnmp1.8 升级php版本 从7.4.21 升级到 7.4.30 失败

日志太长,添加在了附件中

flyminco 发表于 2022-6-14 18:38:52

部分日志
Current PHP Version:7.4.21
You can get version number from http://www.php.net/
Please enter a PHP Version you want:
Press any key to start...or Press Ctrl+c to cancel

Notice: php-7.4.30.tar.bz2 not found!!!download now...
Notice: php-7.4.30.tar.bz2 not found!!!download now...

2022-06-14 11:55:56 (592 KB/s) - 已保存 “php-7.4.30.tar.bz2” )

Download php-7.4.30.tar.bz2 successfully!
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            https://lnmp.org             |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx...done
Gracefully shutting down php-fpm . done
Gracefully shutting down php-fpm . done
Installing Dependent for PHP...

依赖关系解决



.....

总下载量:15 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新    : epel-release-7-14.noarch                                    1/2
warning: /etc/yum.repos.d/epel-testing.repo created as /etc/yum.repos.d/epel-testing.repo.rpmnew
warning: /etc/yum.repos.d/epel.repo created as /etc/yum.repos.d/epel.repo.rpmnew
清理      : epel-release-7-13.noarch                                    2/2
验证中      : epel-release-7-14.noarch                                    1/2
验证中      : epel-release-7-13.noarch                                    2/2

更新完毕:
epel-release.noarch 0:7-14

完毕!
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* extras: ftp.sjtu.edu.cn
* updates: mirrors.ustc.edu.cn
软件包 oniguruma-6.8.2-1.el7.x86_64 已安装并且是最新版本
软件包 oniguruma-devel-6.8.2-1.el7.x86_64 已安装并且是最新版本
无须任何处理
[+] Installing 7.4.30
Uncompress php-7.4.30.tar.bz2...
cd php-7.4.30...
configure: WARNING: unrecognized options: --with-png, --without-libzip
checking for grep that handles long lines and -e... /bin/grep

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 openssl >= 1.0.1... no
configure: error: Package requirements (openssl >= 1.0.1) were not met:

No package 'openssl' 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 OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有规则可以创建目标“install”。 停止。
Copy new php configure file...
Modify php.ini......
include/php.sh:行86: pear: 未找到命令
include/php.sh:行87: pecl: 未找到命令
Downloading Composer...
--2022-06-14 11:57:24--https://soft.vpser.net/web/php/composer/composer.phar
正在解析主机 soft.vpser.net (soft.vpser.net)... 81.70.180.148
正在连接 soft.vpser.net (soft.vpser.net)|81.70.180.148|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Moved Temporarily
位置:http://175.6.32.4:88/soft/web/php/composer/composer.phar [跟随至新的 URL]
--2022-06-14 11:57:24--http://175.6.32.4:88/soft/web/php/composer/composer.phar
正在连接 175.6.32.4:88... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2697631 (2.6M)
正在保存至: “/usr/local/bin/composer”

   0K .......... .......... .......... .......... ..........1% 1.17M 2s
2600K .......... .......... .......... ....               100% 13.3M=4.3s

2022-06-14 11:57:28 (610 KB/s) - 已保存 “/usr/local/bin/composer” )

Composer install successfully.
/usr/bin/env: php: 没有那个文件或目录
Install ZendGuardLoader for PHP 7...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: 无法获取"/root/lnmp1.8/src/php-7.4.30/sapi/fpm/init.d.php-fpm" 的文件状态(stat): 没有那个文件或目录
chmod: 无法访问"/etc/init.d/php-fpm": 没有那个文件或目录
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            https://lnmp.org             |
+-------------------------------------------+
Starting LNMP...
Starting nginx...done
/bin/lnmp:行30: /etc/init.d/php-fpm: 没有那个文件或目录
Starting php-fpmdone
======== upgrade php failed ======
upgrade php log: /root/upgrade_lnmp_php.log
You upload upgrade_lnmp_php.log to LNMP Forum for help.

licess 发表于 2022-6-14 20:17:49

checking for openssl >= 1.0.1... no
configure: error: Package requirements (openssl >= 1.0.1) were not met:

No package 'openssl' 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 OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
你系统上缺少openssl-devel,有可能被你误删或者有其他问题
可以 yum install openssl-devel 试一下看能否正常安装

flyminco 发表于 2022-6-15 10:17:16

licess 发表于 2022-6-14 20:17
你系统上缺少openssl-devel,有可能被你误删或者有其他问题
可以 yum install openssl-devel 试一下看能否 ...

感谢大佬的回答,确实是这个问题导致的,在修复,再试试升级php
页: [1]
查看完整版本: lnmp1.8 升级php版本 从7.4.21 升级到 7.4.30 失败