侧边栏壁纸
博主头像
我的学习心得 博主等级

行动起来,活在当下

  • 累计撰写 223 篇文章
  • 累计创建 60 个标签
  • 累计收到 4 条评论

目 录CONTENT

文章目录

error while loading shared libraries: libssl.so.6

Administrator
2023-02-02 / 0 评论 / 0 点赞 / 1121 阅读 / 0 字

报错如下:

$ 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
0

评论区