執行程序報告:
./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
安裝完成後,解決。