error while loading shared libraries: libssl.so.6

本文介绍了解决在安装MySQL过程中遇到的libssl.so.6和libcrypto.so.6缺失问题的方法。通过查找并创建软链接指向正确的库文件,或者下载安装缺失的库来修复错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

执行  scripts/mysql_install_db --user=mysql 

安装mysql的时候报错:

./bin/my_print_defaults: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
FATAL ERROR: Neither host '172-16-4-12' nor 'localhost' could be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option


解决办法: 

cd /usr/lib64


[root@172-16-4-12 lib64]# ll *ssl*
-rwxr-xr-x  1 root root 261248 Nov  4 17:50 libssl3.so
lrwxrwxrwx  1 root root     16 Dec 15 10:02 libssl.so -> libssl.so.1.0.1e
lrwxrwxrwx  1 root root     16 Dec 15 10:02 libssl.so.10 -> libssl.so.1.0.1e
-rwxr-xr-x  1 root root 441256 Dec 14 13:16 libssl.so.1.0.1e


如果有 则  执行 

ln -s libssl.so.1.0.1e libssl.so.6

如果没有安装 这需要在网上下载安装


同理: error while loading shared libraries: libcrypto.so.6: cannot open shared object

这个错误也用相同的办法处理

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值