安装mysql-5.7.25时报error while loading shared libraries: libcrypt.so.1: cannot open shared object file:

2021/7/17 19:08:58

本文主要是介绍安装mysql-5.7.25时报error while loading shared libraries: libcrypt.so.1: cannot open shared object file:,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

安装mysql5.7时报 error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

系统环境 CentOS 6.8 

cat /proc/version 
Linux version 5.6.6-300.fc32.x86_64 (mockbuild@bkernel03.phx2.fedoraproject.org) (gcc version 10.0.1 20200328 (Red Hat 10.0.1-0.11) (GCC)) #1 SMP Tue Apr 21 13:44:19 UTC 2020

 安装压缩包:mysql-5.7.25-linux-glibc2.12-x86_64.tar.gz

安装参照说明:https://blog.csdn.net/weixin_43611145/article/details/86701241

在初始化那一步报错

/usr/local/mysql/bin
[root@instance-u5dxob06 bin]# ./mysqld --initialize --user=mysql --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data/ --lc_messages_dir=/usr/local/mysql/share --lc_messages=en_US
./mysqld: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
 

以下是我的执行经过【未成功】

yum install -y libcryptui-devel

yum install -y libcryptui-devel.i686

yum install -y libcryptui-devel.x86_64

安装到下面这个时未成功

 yum install -y cryptsetup-python.x86_64

详情是:

[root@instance-u5dxob06 lib64]# yum install -y cryptsetup-python.x86_64

Last metadata expiration check: 0:23:32 ago on Fri 16 Jul 2021 07:40:03 PM CST.

No match for argument: cryptsetup-python.x86_64

Error: Unable to find a match: cryptsetup-python.x86_64

接着执行以下命令:再执行 mysql初始脚本未成功

yum install libaio  -y

网上查询说执行以下脚本,

yum -y install numactl

来原:https://blog.csdn.net/liukai6/article/details/78323364

其它参照:https://www.codeleading.com/article/1718554140/

最终解决办法是

经高人指点,只需要 yum install libcrypt-devel 然后yum update 即可解决该问题



这篇关于安装mysql-5.7.25时报error while loading shared libraries: libcrypt.so.1: cannot open shared object file:的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程