./nebula: error while loading shared libraries: libreadline.so.6

问题描述

操作系统为centos8
运行命令报错

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

推测可能是系统版本为centos8,相应的库版本不对应,尝试通过添加软链解决

解决方案

  1. 于/usr/lib64下添加软链

    sudo ln -s libreadline.so.7.0 libreadline.so.6

    再次运行时报错变为

    ./nebula: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
  2. 再次添加相应软链

    sudo ln -s libncurses.so.6 libncurses.so.5

    再次运行时报错变为

    ./nebula: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
  3. 根据报错信息判断后再次添加软链

    sudo ln -s libtinfo.so libtinfo.so.5

    再次运行时发现可正常运行

总结

通过添加多条软链可解决该问题

你可能感兴趣的:(./nebula: error while loading shared libraries: libreadline.so.6)