Emqx - /usr/lib/emqx/bin/cuttlefish: error while loading shared libraries: libtinfo.so.5: cannot ope
linux安装EMQX报 error while loading shared libraries: libtinfo.so.5 解决办法
/usr/lib/emqx/bin/cuttlefish: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
我们在Linux上安装Emqx的时候,发现总是在启动的时候(./emqx console),报错:/usr/lib/emqx/bin/cuttlefish: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory;开始以为是版本的问题,在EMQ官网尝试了各种版本,以及二进制包和zip包,都是没有办法避开上面的报错信息,启动失败。
解决办法:
# find / -name libtinfo.so
/usr/lib64/libtinfo.so
# ll /usr/lib64/ |grep libtinfo.so
-rwxr-xr-x 1 root root 179264 Sep 19 2019 libtinfo.so.6.0
# sudo ln -s /usr/lib64/libtinfo.so.6.0 /usr/lib64/libtinfo.so.5
lrwxrwxrwx 1 root root 26 Oct 26 07:32 libtinfo.so.5 -> /usr/lib64/libtinfo.so.6.0