mydumper執行報錯遇到缺失libssl.so.1.1問題的解決方法

chenfeng發表於2018-05-15
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

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15498/viewspace-2154493/,如需轉載,請註明出處,否則將追究法律責任。

相關文章