解决libreadline.so.6: cannot open shared object file: No such file or directory的问题

《解决libreadline.so.6: cannot open shared object file: No such file or directory的问题》

之前有一个在ubuntu16.04上正常运行的程序,搬到一个ubuntu18.04的机器上以后,报错:

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

头都大了,之前配置环境都搞疯了,如果换成16.04会生无可恋的。

幸好有大神帮忙,了解了这个报错是因为libreadline.so.6的版本过时了,都是装7的版本,将7做软连接为6就行。

两行代码解决:

cd /lib/x86_64-linux-gnu/
 sudo ln -s libreadline.so.7.0 libreadline.so.6

你可能感兴趣的:(解决libreadline.so.6: cannot open shared object file: No such file or directory的问题)