ubuntu error while loading shared libraries: libxml2.so.2: cannot open shared object file: 解決

執行程序報告:

./fexcute: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such
file or directory

查找問題過程:
ldd fexcute | grep found

        libxml2.so.2 => not found
        libstdc++.so.6 => not found
        libz.so.1 => not found

但是在機器中找到了 /usr/lib/x86_64-linux-gnu/libxml2.so.2

但是執行程序依然報找不到,那有可能跟平臺有關。

uname -a

Linux p23 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:11:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

執行:

sudo apt-get install libxml2:i386 libstdc++6:i386 

安裝完成後,解決。

發佈了20 篇原創文章 · 獲贊 7 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章