自学内容网 自学内容网

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


原文地址:https://blog.csdn.net/a26637896/article/details/136530062

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!