VPS侦探论坛

 找回密码
 注册
查看: 154|回复: 9

RHEL7.9离线 PHP8.0.20报错

[复制链接]
发表于 2022-6-29 15:20:31 | 显示全部楼层 |阅读模式

安装的时候就看到一个error

make: *** [sapi/phpdbg/phpdbg] Error 1
请问一下这个应该怎么解决。在自己的虚拟机7.9上面安装是没有报错的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云VPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-6-29 15:49:24 | 显示全部楼层


日志太大穿不上来
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-6-29 15:50:56 | 显示全部楼层


php:/- usr8.0.20undefined/ local/reference/ extto/ `srcopenssl/SSL_CTX_set_options/lnmp1.9openssl.c-'full
:/extsrc3958//penssl/php xp_ssl.o-undefined:8.0.20 / extreference/In openssl to/function xp_ssl.c` SA_get0_key1290`':
sk_GENERAL_NAME_num '/undefined:usr
//referenceusrlocal/ /localcollect2: error: ld returned 1 exit status


undefinedext /referenceopenssl /toxp_ssl.o :` EVP_MD_CTX_freeIn'
functionext /`pharphp_openssl_create_sni_server_ctx/'util.o::
/Inusr /functionlocal /`src/phar_create_signaturelnmp1.9':-
/fullusr//local/srcsrc//lnmp1.9php--full8.0.20//srcext//phpopenssl-/8.0.20xp_ssl.c/:ext1359/:phar /undefinedutil.c :reference1843 :to  `undefinedTLS_server_method 'reference
ext /toopenssl/ xp_ssl.o`:EVP_MD_CTX_new 'In
/function usr`/sk_X509_numlocal'/:src
//usr/lnmp1.9local-/fullinclude//srcopenssl//x509.h:php99-:8.0.20 /undefinedext /referencephar /toutil.c :`1879OPENSSL_sk_num:'
undefinedcollect2: error: ld returned 1 exit status

/usr/local/src/lnmp1.9-full/src/php-8.0.20/ext/openssl/xp_ssl.c:1617: undefined reference to `TLS_server_method'
/usr/local/src/lnmp1.9-full/src/php-8.0.20/ext/openssl/xp_ssl.c:1674: undefined reference to `SSL_CTX_set_security_level'
/usr/local/src/lnmp1.9-full/src/php-8.0.20collect2: error: ld returned 1 exit status

collect2: error: ld returned 1 exit status
make: *** [sapi/phpdbg/phpdbg] Error 1
make: *** Waiting for unfinished jobs....
make: *** [sapi/cli/php] Error 1
make: *** [sapi/fpm/php-fpm] Error 1
make: *** [sapi/cgi/php-cgi] Error 1
美国VPS推荐: 遨游主机LinodeLOCVPS主机云VPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-6-29 16:01:07 | 显示全部楼层



里面有一大堆的undefined referrence
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-6-29 16:25:22 | 显示全部楼层

还有个问题,安装失败了 怎么卸载掉啊

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

 楼主| 发表于 2022-6-29 17:38:01 | 显示全部楼层

查日志发现很多openssl的错误。因为本地虚拟机和生产虚拟机是一样的系统版本号 所以 我对比了一下 本地 openssl version 是 1.0.2k-fip(默认版) 线上是 1.1.1k。请问是不是这个原因呢
 楼主| 发表于 2022-6-29 17:38:23 | 显示全部楼层

ltt 发表于 2022-6-29 17:38
查日志发现很多openssl的错误。因为本地虚拟机和生产虚拟机是一样的系统版本号 所以 我对比了一下 本地 ope ...

/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:2863: undefined reference to `X509_REQ_get_subject_name'
ext/openssl/openssl.o: In function `sk_CONF_VALUE_num':
/usr/local/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_num'
ext/openssl/openssl.o: In function `sk_CONF_VALUE_value':
/usr/local/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_value'
ext/openssl/openssl.o: In function `sk_CONF_VALUE_num':
/usr/local/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_num'
/usr/local/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_num'
ext/openssl/openssl.o: In function `sk_CONF_VALUE_value':
/usr/local/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_value'
ext/openssl/openssl.o: In function `php_openssl_pkey_init_and_assign_rsa':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:3902: undefined reference to `RSA_set0_key'
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:3908: undefined reference to `RSA_set0_factors'
ext/openssl/openssl.o: In function `php_openssl_pkey_init_dsa':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:3936: undefined reference to `DSA_set0_pqg'
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:3943: undefined reference to `DSA_set0_key'
ext/openssl/openssl.o: In function `php_openssl_pkey_init_dh':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:4013: undefined reference to `DH_set0_pqg'
ext/openssl/openssl.o: In function `php_openssl_dh_pub_from_priv':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:3990: undefined reference to `BN_with_flags'
ext/openssl/openssl.o: In function `php_openssl_pkey_init_dh':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:4027: undefined reference to `DH_set0_key'
ext/openssl/openssl.o: In function `php_openssl_pkey_init_dsa':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:3955: undefined reference to `DSA_get0_key'
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:3956: undefined reference to `BN_is_zero'
ext/openssl/openssl.o: In function `php_openssl_pkey_init_and_assign_rsa':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:3915: undefined reference to `RSA_set0_crt_params'
ext/openssl/openssl.o: In function `php_openssl_pkey_init_dh':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:4020: undefined reference to `DH_set0_key'
ext/openssl/openssl.o: In function `zif_openssl_pkey_export_to_file':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:4324: undefined reference to `EVP_PKEY_get0_EC_KEY'
ext/openssl/openssl.o: In function `zif_openssl_pkey_export':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:4396: undefined reference to `EVP_PKEY_get0_EC_KEY'
ext/openssl/openssl.o: In function `php_openssl_encrypt':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:7200: undefined reference to `EVP_CIPHER_CTX_reset'
ext/openssl/openssl.o: In function `php_openssl_decrypt':
/usr/local/src/lnmp1.8-full/src/php-8.0.8/ext/openssl/openssl.c:7301: undefined reference to `EVP_CIPHER_CTX_reset'
ext/openssl/openssl.o: In function `sk_X509_free':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_free'
美国VPS推荐: 遨游主机LinodeLOCVPS主机云VPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-6-29 21:25:32 | 显示全部楼层

日志需要按问题反馈必读要求上传

目测是你这机器是自行升级了openssl而且是有问题导致的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-6-29 21:43:58 | 显示全部楼层

licess 发表于 2022-6-29 21:25
日志需要按问题反馈必读要求上传

目测是你这机器是自行升级了openssl而且是有问题导致的 ...

日志压缩了也超过上传的限制,openssl确实版本跟我自己的环境不一样是1.1.1k,但是查询ssh的时候出来的ssl版本 又是1.0.2k-fip 应该属于升级openssh但是只升级一半
美国VPS推荐: 遨游主机LinodeLOCVPS主机云VPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-6-30 08:10:28 | 显示全部楼层



ltt 发表于 2022-6-29 21:43
日志压缩了也超过上传的限制,openssl确实版本跟我自己的环境不一样是1.1.1k,但是查询ssh的时候出来的ss ...

论坛是小空间小内存小带宽机器存不了附件,按问题反馈必读要求上传
RHEL 7自带的openssl都是1.0.2是1.1.1肯定就是动过
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2022-8-9 03:42 , Processed in 0.023023 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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