故障解決: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: libclntsh.so.10.1ErrorWhile
- ggsci: error while loading shared libraries: libnnz11.soErrorWhile
- error while loading shared libraries: libgconf-2.so.4:ErrorWhileGC
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- mongod: error while loading shared libraries: libstdc++.so.6GoErrorWhileC++
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- MongoDB報錯mongorestore: error while loading shared libraries: libsasl2.so.2MongoDBRESTErrorWhile
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- MySQL 5.7初始化報錯error while loading shared libraries: libnuma.so.1MySqlErrorWhile
- linux puppeteer 截圖提示缺少chrome-linux/chrome error while loading shared libraries: libXdamage.so.1LinuxChromeErrorWhile
- linux編譯Android原始碼的時候出錯:error while loading shared libraries: libstdc++.so.6Linux編譯Android原始碼ErrorWhileC++
- 解決docker: Error response from daemon故障DockerError
- Dynamics CRM CRM Reporting Error: Error occurred while fetching the data extension的解決方法ErrorWhile
- RuntimeError: Error(s) in loading state_dict for SSD: Missing key(s) in解決辦法Error
- Android unspecified' depends on one or more Android Libraries but is a jar 的解決方法AndroidJAR
- ORA-10873 故障解決
- python -- 解決字典【KEY ERROR】PythonError
- 【已解決】Error filter ListenerStartErrorFilter
- Error creating bean with name 解決ErrorBean
- SyntaxError: EOL while scanning string literal錯誤解決ErrorWhile
- 【Spark篇】---Spark故障解決(troubleshooting)Spark
- linux 故障解決方法彙總Linux
- 解決IDEA Error:Output directory is not specifiedIdeaError
- 解決Hystrix dashboard Turbine 一直 Loading…… 及其他坑
- OGG-15050 Error loading Java VM runtime library: (2 No such file or directory)ErrorJava
- Error: error:0308010C:digital envelope routines::unsupported 解決方案ErrorGit
- 帝國CMS提示parse error syntax error的解決方法Error
- HBuilder解決:Error: error:0308010C:digital envelope routines::unsupportedUIErrorGit
- Java while和do while迴圈詳解JavaWhile
- git push fatal: HttpRequestException encountered. An error occurred while sending the requestGitHTTPExceptionErrorWhile
- An error occurred while updating the entries. See the inner exception for details.ErrorWhileExceptionAI
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- 利用 Tmux 和 kubectl 解決 Kubernetes 故障UX
- Sentinel哨兵模式解決故障轉移模式
- 故障解決:埠已被佔用 1080