故障解決:error while loading shared libraries: libncurses.so.5
故障解決:error while loading shared libraries: libncurses.so.5
問題的提出
在我準備除錯 Linux-0.11 核心的時候,出現瞭如下故障(真奇怪,以前沒有這個問題啊,怎麼突然就這樣了,555555555……)
/rungdb
./gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
即執行gdb的時候,報錯libncurses.so.5: cannot open shared object file
找不到libncurses.so.5
搜了一波後,解決辦法是安裝libncurses5:i386
於是我執行命令:
sudo apt-get install libncurses5:i386
安裝完成後,再次嘗試
./rungdb
繼續報錯
./gdb: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory
找不到libexpat.so.1
至少有2種解決方法:一是安裝libexpat1-dev:i386
,二是建立一個軟連線。
思路一
sudo apt-get install libexpat1-dev:i386
結果就是有了 /lib/i386-linux-gnu/libexpat.so.1
實際上/lib/i386-linux-gnu/libexpat.so.1
是個軟連線,它指向/lib/i386-linux-gnu/libexpat.so.1.6.0
思路二
搜尋名稱包含libexpat.so
的檔案,我發現了/usr/lib/vmware-tools/lib32/libexpat.so.0/libexpat.so.0
,也許可以建立一個軟連線(相當於windows系統的快捷方式),讓/usr/lib/libexpat.so.1
(連結名)指向/usr/lib/vmware-tools/lib32/libexpat.so.0/libexpat.so.0
(目標)。
命令是
sudo ln -s /usr/lib/vmware-tools/lib32/libexpat.so.0/libexpat.so.0 /usr/lib/libexpat.so.1
試了一下,問題得到解決。
【參考資料】
http://chunyingy.blog.163.com/blog/static/34128913201122310618901/
相關文章
- 解決"error while loading shared libraries: libclntshErrorWhile
- error while loading shared librariesErrorWhile
- Mysql的error while loading shared libraries解決方法MySqlErrorWhile
- ./ggsci: error while loading shared librariesErrorWhile
- sqlplus: error while loading shared libraries的解決方案SQLErrorWhile
- error while loading shared libraries 錯誤解決辦法總結ErrorWhile
- sqlplus: error while loading shared librariesSQLErrorWhile
- [mysql]error while loading shared libraries: libaio.so.1: 解決方案MySqlErrorWhileAI
- 使用SRVCTL時報錯:error while loading shared librariesErrorWhile
- 錯誤 error while loading shared libraries: libclntsh.so.9.0 的解決ErrorWhile
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- error while loading shared libraries: libaio.so.1ErrorWhileAI
- Error while loading shared libraries: libssl.so.6:ErrorWhile
- 【故障處理】csscan工具無法使用,報錯“error while loading shared libraries...”CSSErrorWhile
- mongod: error while loading shared libraries: libstdc++.so.6GoErrorWhileC++
- error while loading shared libraries: libclntsh.so.10.1ErrorWhile
- innobackupex: error while loading shared libraries: libssl.so.6ErrorWhile
- glodengate配置時報ggsci: error while loading shared librariesErrorWhile
- ORACLE SQLPLUS 報 error while loading shared libraries[轉]OracleSQLErrorWhile
- error while loading shared libraries: libcap.so.1: cannot open sharedErrorWhile
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- error while loading shared libraries: libgconf-2.so.4:ErrorWhileGC
- ggsci: error while loading shared libraries: libnnz11.soErrorWhile
- error while loading shared libraries: libstdc++.so.5: cannot openErrorWhileC++
- csscan: error while loading shared libraries: libclntsh.so.10.1CSSErrorWhile
- error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No suchErrorWhileIBMMySqlclientObject
- sqlplus: error while loading shared libraries: libaio.so.1:SQLErrorWhileAI
- sqlplus: error while loading shared libraries: libsqlplus.soSQLErrorWhile
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- error while loading shared libraries: libodm9.so: cannot open shared object file: No such file or diErrorWhileObject
- MongoDB報錯mongorestore: error while loading shared libraries: libsasl2.so.2MongoDBRESTErrorWhile
- root.sh / vipca: error while loading shared libraries: libpth read.so.PCAErrorWhile
- 錯誤"error while loading shared libraries: xxx.so.x" 的原因和解決辦法ErrorWhile
- error while loading shared libraries: xxx.so.x"錯誤的原因和解決辦法ErrorWhile
- "error while loading shared libraries: xxx.so.x" 錯誤的原因和解決辦法ErrorWhile
- rac安裝過程中 error while loading shared libraries libpthread.so.0 問題的解決ErrorWhilethread
- sqlldr執行報錯:error while loading shared libraries: libclntsh.so.10.1:SQLErrorWhile
- MySQL 5.7初始化報錯error while loading shared libraries: libnuma.so.1MySqlErrorWhile