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

来源:互联网 发布:qq宠物挂机软件 编辑:程序博客网 时间:2024/05/29 06:54

执行程序报告:

./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 

安装完成后,解决。

0 0