小编给大家分享一下如何解决mydumper运行报错遇到缺失libssl.so.1.1问题,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
mydumper执行报错:
# /usr/local/bin/mydumper --version
/usr/local/bin/mydumper: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
解决方法:
在/etc/ld.so.conf文件中写入openssl库文件的搜索路径:
[root@test yum.repos.d]# ll /etc/ld.so.conf
-rw-r--r--. 1 root root 28 Jul 25 2013 /etc/ld.so.conf
[root@test yum.repos.d]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
[root@test yum.repos.d]# echo "/usr/local/lib64" >> /etc/ld.so.conf
[root@test yum.repos.d]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib64
使修改后的/etc/ld.so.conf生效:
[root@test mydumper-0.9.1]# ldconfig
[root@test yum.repos.d]# ldconfig -v
/usr/lib64/mysql:
libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
/usr/local/lib64:
/lib:
/lib64:
liblvm2cmd.so.2.02 -> liblvm2cmd.so.2.02
libsemanage.so.1 -> libsemanage.so.1
libcap.so.2 -> libcap.so.2.16
libselinux.so.1 -> libselinux.so.1
libbz2.so.1 -> libbz2.so.1.0.4
libncurses.so.5 -> libncurses.so.5.7
..............................................................................................
..............................................................................................
..............................................................................................
再次运行正常:
[root@test mydumper-0.9.1]# /usr/local/bin/mydumper --version
mydumper 0.9.1, built against MySQL 8.0.11
以上是“如何解决mydumper运行报错遇到缺失libssl.so.1.1问题”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!