E07-error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such fil

安装nmon的过程当中遇到报错:error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directoryspa

解决办法:用root 操做就行,可是须要更换nmoncode

网上找的方法:object

法一:file

那就表示系統不知道xxx.so 放在哪個目錄下。

這個時候就要在/etc/ld.so.conf中加入xxx.so所在的目錄。

 通常而言,有不少so檔會在/usr/local/lib這個目錄下,因此在/etc/ld.so.conf中加入/usr/local/lib這一行,能够解決此問題。

 

將 /etc/ld.so.conf存檔後,還要執行「/sbin/ldconfig –v」來更新一下才會生效。

法二:方法

ln -s /usr/lib/libncurses.so.5 /usr/lib/libtinfo.so.5 

ln -s /usr/lib/libncurses.so.5 /lib/libtinfo.so.5
相关文章
相关标签/搜索