error while loading shared libraries: libreadline.so.5: cannot open shared object file

错误信息:

mysql: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory


解决办法:

 yum install readline-devel readline


cd  /usr/lib64

[root@172-16-4-12 lib64]# ll *libreadline*
lrwxrwxrwx 1 root root 28 Dec 15 10:35 libreadline.so -> ../../lib64/libreadline.so.6
[root@172-16-4-12 lib64]# ln -s ../../lib64/libreadline.so.6  libreadline.so.5
[root@172-16-4-12 lib64]# ll *libreadline*
lrwxrwxrwx 1 root root 28 Dec 15 10:35 libreadline.so -> ../../lib64/libreadline.so.6
lrwxrwxrwx 1 root root 28 Dec 15 10:36 libreadline.so.5 -> ../../lib64/libreadline.so.6

你可能感兴趣的:(error while loading shared libraries: libreadline.so.5: cannot open shared object file)