执行程序报告:
./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
安装完成后,解决。