堡塔618特惠活动,企业版1099元/年,永久授权最高立减20000元查看活动
当前位置:论坛首页 > Linux面板 > 求助

【待反馈】安装php版本提示失败

发表在 Linux面板2024-5-27 11:21 [复制链接] 9 125

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

面板版本 8.0.5
系统版本:

系统版本 CentOS 7.5.1804 x86_64(Py3.7.9)
问题描述:

执行 bash /www/server/panel/install/php.sh install 7.4 命令提示安装失败,该如果解决呢
相关截图(日志、错误):

openssl.c.text+0x12a1e): undefined reference to `EVP_MD_CTX_new'
openssl.c.text+0x12b98): undefined reference to `EVP_MD_CTX_free'
ext/openssl/.libs/openssl.o: In function `zif_openssl_verify':
openssl.c.text+0x12db6): undefined reference to `EVP_MD_CTX_new'
openssl.c.text+0x12e2c): undefined reference to `EVP_MD_CTX_free'
ext/openssl/.libs/openssl.o: In function `zif_openssl_seal':
openssl.c.text+0x1333e): undefined reference to `EVP_CIPHER_CTX_reset'
ext/openssl/.libs/openssl.o: In function `zif_openssl_digest':
openssl.c.text+0x148fc): undefined reference to `EVP_MD_CTX_new'
openssl.c.text+0x14d1b): undefined reference to `EVP_MD_CTX_free'
ext/openssl/.libs/openssl.o: In function `php_openssl_encrypt':
openssl.c.text+0x160cb): undefined reference to `EVP_CIPHER_CTX_reset'
ext/openssl/.libs/openssl.o: In function `php_openssl_decrypt':
openssl.c.text+0x16824): undefined reference to `EVP_CIPHER_CTX_reset'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
xp_ssl.c.text+0xbd): undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_value':
xp_ssl.c:(.text+0xdf): undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_num':
xp_ssl.c:(.text+0xf9): undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_value':
xp_ssl.c:(.text+0x11b): undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_pop_free':
xp_ssl.c:(.text+0x140): undefined reference to `OPENSSL_sk_pop_free'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_set_server_specific_opts':
xp_ssl.c:(.text+0x29a2): undefined reference to `SSL_CTX_get_options'
xp_ssl.c:(.text+0x2adc): undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_create_sni_server_ctx':
xp_ssl.c:(.text+0x2bef): undefined reference to `TLS_server_method'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
xp_ssl.c:(.text+0x3ab3): undefined reference to `TLS_client_method'
xp_ssl.c:(.text+0x3aba): undefined reference to `TLS_server_method'
xp_ssl.c:(.text+0x4175): undefined reference to `SSL_CTX_set_security_level'
xp_ssl.c:(.text+0x43c7): undefined reference to `SSL_CTX_set_options'
ext/ftp/.libs/ftp.o: In function `ftp_login':
ftp.c:(.text+0x53a): undefined reference to `TLS_client_method'
ftp.c:(.text+0x58e): undefined reference to `SSL_CTX_set_options'
ext/phar/.libs/util.o: In function `phar_verify_signature':
util.c:(.text+0x502b): undefined reference to `EVP_MD_CTX_new'
util.c:(.text+0x5126): undefined reference to `EVP_MD_CTX_free'
util.c:(.text+0x516c): undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_create_signature':
util.c:(.text+0x5a2d): undefined reference to `EVP_MD_CTX_new'
util.c:(.text+0x5c16): undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

使用道具 举报 只看该作者 回复
发表于 2024-5-27 11:51:14 | 显示全部楼层
您好,看了您发的错误信息是openssl的问题,需要您重新安装openssl,在安装前您是否可以升级一下面板的版本呢,这边方便后续可以处理问题
PHP7.3以上版本就是使用新的openssl1.1.1K这个版本去安装的
  1. wget http://download.bt.cn/src/openssl-1.1.1l.tar.gz -T 20           
  2. tar -zxf openssl-1.1.1l.tar.gz            
  3. rm -f openssl-1.1.1l.tar.gz           
  4. cd openssl-1.1.1l            
  5. ./config --prefix=/usr/local/openssl111 --openssldir=/usr/local/openssl111 enable-md2 enable-rc5 sctp zlib-dynamic shared -fPIC     
  6. make install            
  7. echo "/usr/local/openssl111/lib" >> /etc/ld.so.conf.d/zopenssl111.conf            
  8. ldconfig
复制代码
使用道具 举报 回复 支持 反对
发表于 2024-5-27 12:17:21 | 显示全部楼层
请问执行: ./config --prefix=/usr/local/openssl111 --openssldir=/usr/local/openssl111 enable-md2 enable-rc5 sctp zlib-dynamic shared -fPIC  
提示了:gcc  -I. -Iinclude -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -fPIC -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/openssl111\"" -DENGINESDIR="\"/usr/local/openssl111/lib/engines-1.1\"" -DZLIB -DZLIB_SHARED -DNDEBUG  -MMD -MF crypto/bio/bss_dgram.d.tmp -MT crypto/bio/bss_dgram.o -c -o crypto/bio/bss_dgram.o crypto/bio/bss_dgram.c
crypto/bio/bss_dgram.c:17:28: fatal error: netinet/sctp.h: No such file or directory
#  include <netinet/sctp.h>
                            ^
compilation terminated.
make[1]: *** [crypto/bio/bss_dgram.o] Error 1
make[1]: Leaving directory `/opt/openssl-1.1.1l'
make: *** [build_libs] Error 2

是什么原因呢
使用道具 举报 回复 支持 反对
发表于 2024-5-27 12:19:22 | 显示全部楼层
宝塔用户_tvgopp 发表于 2024-5-27 12:17
请问执行: ./config --prefix=/usr/local/openssl111 --openssldir=/usr/local/openssl111 enable-md2 ena ...

您好,根据您提供的错误信息,看起来是在编译 OpenSSL 时缺少了 netinet/sctp.h 头文件,导致编译失败。netinet/sctp.h 是用于支持 Stream Control Transmission Protocol (SCTP) 的头文件。
您可以在您ssh终端执行
  1. sudo yum install lksctp-tools
复制代码
使用道具 举报 回复 支持 反对
发表于 2024-5-27 12:20:56 | 显示全部楼层
输入: openssl version -a
提示:OpenSSL 1.1.1k  25 Mar 2021 (Library: OpenSSL 1.1.1  11 Sep 2018)
built on: Mon May 27 02:24:07 2024 UTC
platform: linux-x86_64
options:  bn(64,64) rc4(16x,int) des(int) idea(int) blowfish(ptr)
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DNDEBUG
OPENSSLDIR: "/usr/local/openssl/ssl"
ENGINESDIR: "/usr/local/openssl/lib64/engines-1.1"
Seeding source: os-specific
使用道具 举报 回复 支持 反对
发表于 2024-5-27 13:10:05 | 显示全部楼层
本帖最后由 宝塔用户_tvgopp 于 2024-5-27 13:13 编辑
运维技术阿闯 发表于 2024-5-27 12:19您好,根据您提供的错误信息,看起来是在编译 OpenSSL 时缺少了 netinet/sctp.h 头文件,导致编译失败。n ...

执行:sudo yum install lksctp-tools
提示:截图第二张                                                   
但是下一步执行:make install
就提示了:截图第三张 第一张.png 微信图片_20240527130834.png 第二张.png
使用道具 举报 回复 支持 反对
发表于 2024-5-27 14:46:41 | 显示全部楼层
运维技术阿闯 发表于 2024-5-27 12:19
您好,根据您提供的错误信息,看起来是在编译 OpenSSL 时缺少了 netinet/sctp.h 头文件,导致编译失败。n ...

你好 可以帮忙看下吗?
使用道具 举报 回复 支持 反对
发表于 2024-5-27 14:52:12 | 显示全部楼层
宝塔用户_tvgopp 发表于 2024-5-27 14:46
你好 可以帮忙看下吗?

您好,根据报错显示提示 fatal error: netinet/sctp.h: No such directory 表明编译器在尝试包含 <netinet/sctp.h> 这个头文件时未能找到它。这通常意味着你的系统中没有安装SCTP(流控制传输协议)相关的库或开发包,或者头文件所在的路径没有包含在你的编译器搜索路径中。
1:首先确认你的操作系统是否支持SCTP。SCTP主要在UNIX-like系统中使用,比如Linux。如果你的系统不支持SCTP,你可能需要安装一个支持它的内核或者使用一个不同的系统。
2:首先确认你的操作系统是否支持SCTP。SCTP主要在UNIX-like系统中使用,比如Linux。如果你的系统不支持SCTP,你可能需要安装一个支持它的内核或者使用一个不同的系统。
  1. sudo yum install libsctp-devel
复制代码

3:如果以上执行后都不可以的话,建议您还是在面板上面安装吧
使用道具 举报 回复 支持 反对
发表于 2024-5-27 15:17:09 | 显示全部楼层
本帖最后由 宝塔用户_tvgopp 于 2024-5-27 15:18 编辑
运维技术阿闯 发表于 2024-5-27 14:52
您好,根据报错显示提示 fatal error: netinet/sctp.h: No such directory 表明编译器在尝试包含  这个头 ...

你好,在面板上安装也是提示安装失败 要怎么处理呢? 面板安装.png
使用道具 举报 回复 支持 反对
发表于 2024-5-27 17:45:42 | 显示全部楼层
宝塔用户_tvgopp 发表于 2024-5-27 15:17
你好,在面板上安装也是提示安装失败 要怎么处理呢?

点我头像私信我一下,您的todesk远程,或者是您的面板链接,私信的时候要复说一下问题呢
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

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