mysql: error while loading shared libraries: libssl.so.10

文章讲述了在CentOS8上安装MySQL8.0.25时遇到的libssl.so.10缺失错误,解决过程包括尝试通过yum升级openssl但失败,然后手动安装兼容的rpm包,以及后续处理libncurses.so.5和libtinfo.so.5缺失的问题。
摘要由CSDN通过智能技术生成

问题

CentOS8安装完MySQL查看MySQL版本时报错, libssl.so.10 缺失库文件

[root@hadoop102 mysql8.0.25]# mysqladmin --version
mysqladmin: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
[root@hadoop102 mysql8.0.25]# mysql --version
mysql: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory

原因

这个错误消息表明在运行 MySQL 时,系统无法找到名为 libssl.so.10 的共享库文件. 这可能是由于缺少相应的库文件或库文件版本不匹配引起的

解决

安装openssl10 进行OpenSSL升级(用yum升不上去,用rpm包简单有效)

[root@hadoop102 Clash for Windows-0.17.1-x64-linux]# yum install openssl10
Extra Packages for Enterprise Linux 8 - x86_64                                                                                             1.4 MB/s |  16 MB     00:11    
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                                     278 kB/s | 733 kB     00:02    
上次元数据过期检查:0:00:01 前,执行于 2023年08月10日 星期四 14时45分45秒。
未找到匹配的参数: openssl10
错误:没有任何匹配: openssl10

下载rpm包:
https://mirrors.aliyun.com/centos/8/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-3.el8.x86_64.rpm
安装rpm包:

[root@hadoop102 mysql8.0.25]# rpm -i compat-openssl10-1.0.2o-3.el8.x86_64.rpm 
错误:依赖检测失败:
	make 被 compat-openssl10-1:1.0.2o-3.el8.x86_64 需要
[root@hadoop102 mysql8.0.25]# rpm -i compat-openssl10-1.0.2o-3.el8.x86_64.rpm --nodeps --force
[root@hadoop102 mysql8.0.25]# mysqladmin --version
mysqladmin  Ver 8.0.25 for Linux on x86_64 (MySQL Community Server - GPL)

仍有报错:
参考 https://blog.csdn.net/m0_51197424/article/details/129410878https://blog.csdn.net/weixin_43672348/article/details/127522346

[root@hadoop102 mysql8.0.25]# mysql --version
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[root@hadoop102 mysql8.0.25]# cp /usr/lib64/libncurses.so.6 /usr/lib64/libncurses.so.5
[root@hadoop102 mysql8.0.25]# mysql --version
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
[root@hadoop102 mysql8.0.25]# cp /usr/lib64/libtinfo.so.6 /usr/lib64/libtinfo.so.5
[root@hadoop102 mysql8.0.25]# mysql --version
mysql  Ver 8.0.25 for Linux on x86_64 (MySQL Community Server - GPL)

参考: Linux安装MySQL8.0常见问题_知乎

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Kukukukiki192

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值