orel9 通过yum安装php7.1报错nothing provides libcrypto.so.10()(64bit) needed的解决方法

[root@apx lib]# yum install php71w
Last metadata expiration check: 1:14:19 ago on Thu 07 Mar 2024 10:32:47 AM CST.
Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides libcrypto.so.10()(64bit) needed by mod_php71w-7.1.33-1.w7.x86_64 from webtatic
  - nothing provides libssl.so.10()(64bit) needed by mod_php71w-7.1.33-1.w7.x86_64 from webtatic
  - nothing provides libcrypto.so.10(libcrypto.so.10)(64bit) needed by mod_php71w-7.1.33-1.w7.x86_64 from webtatic
  - nothing provides libssl.so.10(libssl.so.10)(64bit) needed by mod_php71w-7.1.33-1.w7.x86_64 from webtatic
  - nothing provides libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) needed by mod_php71w-7.1.33-1.w7.x86_64 from webtatic
  - nothing provides libcrypto.so.10(OPENSSL_1.0.2)(64bit) needed by mod_php71w-7.1.33-1.w7.x86_64 from webtatic
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

出现缺少openssl1.0版本的组件,查看当前服务器的openssl version发现是3.0版本,于是格外下载安装1.0.2o版本的openssl,问题解决。

[root@apx lib]# wget https://rpmfind.net/linux/centos/8-stream/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-3.el8.x86_64.rpm
--2024-03-07 12:02:56--  https://rpmfind.net/linux/centos/8-stream/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-3.el8.x86_64.rpm
Resolving rpmfind.net (rpmfind.net)... 195.220.108.108
Connecting to rpmfind.net (rpmfind.net)|195.220.108.108|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1186088 (1.1M) [application/x-rpm]
Saving to: ‘compat-openssl10-1.0.2o-3.el8.x86_64.rpm’

compat-openssl10-1.0.2o-3. 100%[======================================>]   1.13M  22.2KB/s    in 40s     

2024-03-07 12:03:37 (29.3 KB/s) - ‘compat-openssl10-1.0.2o-3.el8.x86_64.rpm’ saved [1186088/1186088]

[root@apx lib]# ll
total 1160
-rw-r--r--. 1 root root 1186088 Jul  2  2019 compat-openssl10-1.0.2o-3.el8.x86_64.rpm
[root@apx lib]# rpm -ivh compat-openssl10-1.0.2o-3.el8.x86_64.rpm --force
warning: compat-openssl10-1.0.2o-3.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:compat-openssl10-1:1.0.2o-3.el8  ################################# [100%]

重新安装php7.1 

[root@apx lib]# yum install php71w
Last metadata expiration check: 1:31:44 ago on Thu 07 Mar 2024 10:32:47 AM CST.
Dependencies resolved.
==========================================================================================================
 Package              Architecture     Version                          Repository                   Size
==========================================================================================================
Installing:
 mod_php71w           x86_64           7.1.33-1.w7                      webtatic                    2.9 M
Installing dependencies:
 libnsl               x86_64           2.34-83.0.2.el9_3.7              ol9_baseos_latest            72 k

Transaction Summary
==========================================================================================================
Install  2 Packages

Total download size: 3.0 M
Installed size: 9.3 M

  • 6
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值