VPS侦探论坛

 找回密码
 注册
查看: 2962|回复: 4

lnmp1.7升级7.4.27失败,日志在附件里面。

[复制链接]
发表于 2022-1-7 13:36:32 | 显示全部楼层 |阅读模式

当前php版本:
PHP 7.4.11 (cli) (built: Oct 22 2020 18:51:23) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
这是操作系统信息
----
[root@VM-34-65-centos lnmp1.7]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[root@VM-34-65-centos lnmp1.7]# cat /proc/version
Linux version 3.10.0-1160.6.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Tue Nov 17 13:59:11 UTC 2020
-----------------------
麻烦版主帮忙看一下,谢谢啦。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

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


/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1362: undefined reference to `TLS_server_method'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_value':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1620: undefined reference to `TLS_server_method'
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1677: undefined reference to `SSL_CTX_set_security_level'
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1620: undefined reference to `TLS_client_method'
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1714: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_set_server_specific_opts':
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1293: undefined reference to `SSL_CTX_get_options'
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1320: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_num':
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_value':
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_pop_free':
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
ext/ftp/.libs/ftp.o: In function `ftp_login':
/root/lnmp1.7/src/php-7.4.27/ext/ftp/ftp.c:280: undefined reference to `TLS_client_method'
/root/lnmp1.7/src/php-7.4.27/ext/ftp/ftp.c:289: undefined reference to `SSL_CTX_set_options'
ext/gd/libgd/.libs/gdkanji.o: In function `do_convert':
/root/lnmp1.7/src/php-7.4.27/ext/gd/libgd/gdkanji.c:347: undefined reference to `libiconv_open'
/root/lnmp1.7/src/php-7.4.27/ext/gd/libgd/gdkanji.c:360: undefined reference to `libiconv'
/root/lnmp1.7/src/php-7.4.27/ext/gd/libgd/gdkanji.c:374: undefined reference to `libiconv_close'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1559: undefined reference to `EVP_MD_CTX_new'
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1593: undefined reference to `EVP_MD_CTX_free'
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1583: undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_create_signature':
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1839: undefined reference to `EVP_MD_CTX_new'
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1875: undefined reference to `EVP_MD_CTX_free'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/root/lnmp1.7/src/php-7.4.27/ext/xmlrpc/libxmlrpc/encodings.c:63: undefined reference to `libiconv_open'
/root/lnmp1.7/src/php-7.4.27/ext/xmlrpc/libxmlrpc/encodings.c:70: undefined reference to `libiconv'
/root/lnmp1.7/src/php-7.4.27/ext/xmlrpc/libxmlrpc/encodings.c:86: undefined reference to `libiconv_close'
/root/lnmp1.7/src/php-7.4.27/ext/xmlrpc/libxmlrpc/encodings.c:86: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status

你这系统上的openssl自行升级过且升级的过程有问题导致的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-1-7 16:31:19 | 显示全部楼层

licess 发表于 2022-1-7 16:27
你这系统上的openssl自行升级过且升级的过程有问题导致的

[root@VM-34-65-centos php-7.4.25]# openssl version
OpenSSL 1.1.1  11 Sep 2018
----------------------------------
这是我系统上的openssl,现在是需要重新安装它吗
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-1-7 17:53:08 | 显示全部楼层



如果要恢复原PHP,将 /usr/local/ 下 oldphp日志 的目录重命名为 php 并,将/usr/local/oldphp日期/init.d.php-fpm.bak.日期 的文件拷贝到/etc/init.d/ 目录下重命名为 php-fpm 即可恢复。
-------
我按照上面的操作以后,启动php-fpm也会报错:Starting php-fpm /usr/local/php/sbin/php-fpm: symbol lookup error: /usr/local/php/sbin/php-fpm: undefined symbol: zip_libzip_version failed
------中途我升级过libzip为1.2
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2022-1-7 20:39:45 | 显示全部楼层

dfxlm 发表于 2022-1-7 17:53
如果要恢复原PHP,将 /usr/local/ 下 oldphp日志 的目录重命名为 php 并,将/usr/local/oldphp日期/init.d. ...

openssl、libzip都需要恢复,如果还有其他php使用的依赖如果升级了也可能会有影响

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-24 08:50 , Processed in 0.027227 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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