报错如下:
$ mongo --help
mongo: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
关键语句:
error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
关键词:
libssl.so.6
操作系统:
# cat /proc/version
Linux version 3.10.0-1160.81.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Fri Dec 16 17:29:43 UTC 2022
# uname -a
Linux minister.byoryn 3.10.0-1160.81.1.el7.x86_64 #1 SMP Fri Dec 16 17:29:43 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
解决办法:参考 blog
ln -sf /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.6
ln -sf /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.6
评论区