前提:我在CentOS 8上安装Percona Server for MySQL 8.0 bundle中的percona-server-shared-compat-8.0.23-14.1.el8.x86_64.rpm包时 出现问题,即使安装了最新版本的openssl(version: 1:1.1.1g-15.el8_3)也无济于事
error:Failed Dependencies
libcrypto.so.10()(64bit) is needed by percona-server-shared-compat-8.0.23-14.1.el8.x86_64.rpm
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by percona-server-shared-compat-8.0.23-14.1.el8.x86_64.rpm
libssl.so.10()(64bit) is needed by percona-server-shared-compat-8.0.23-14.1.el8.x86_64.rpm
libssl.so.10(libssl.so.10)(64bit) is needed by percona-server-shared-compat-8.0.23-14.1.el8.x86_64.rpm
过程 :google时发现库
https://pkgs.org/download/libcrypto.so.10()(64bit)
发现了compat-openssl10以及解释,大意为compat-openssl10只包含libraries,提供与不支持使用OpenSSL-1.1编译的早期版本和软件的兼容性。
The OpenSSL toolkit provides support for secure communications between machines. This version of OpenSSL package contains only the libraries and is provided for compatibility with previous releases and software that does not support compilation with OpenSSL-1.1.
从stackoverflow可以发现openssl提供了libcrypto.so.10却没有模块名,让系统以为缺少依赖
In your case, openssl seems to provide only libcrypto.so.10 without any module name, making geramer-server believe that dependency is missing as it requires libcrypto.so.10 from module libcrypto.so.10.
https://stackoverflow.com/questions/20518183/dependency-resolution-fails-on-installed-library
解决办法:
直接安装的话可能会报错,提示没有这个包
yum install compat-openssl10
或者
下载rpm包然后安装即可
wget install http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-3.el8.x86_64.rpm
Result: