现在的位置: 首页 > 综合 > 正文

缺少编译库libgmp.so.3: cannot open shared object file: No such file解决方案

2013年04月07日 ⁄ 综合 ⁄ 共 394字 ⁄ 字号 评论关闭

编译android SDK时出现缺少这个so库的解决方案,如下

cc1: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory

(1)首先查找这个 libgmp.so.3这个so库是否有安装

$ aptitude search libgmp

(2)如果没有安装就安装

aptitude install -y libgmp-dev

如果安装了就检查下这个so库是否链接好了,指定链接

$ cd /

$ find -name libgmp.so.*

$ ls -l  ./usr/lib/x86_64-linux-gnu/libgmp.so*

$ cd ./usr/lib/x86_64-linux-gnu/

$ ls -l  libgmp.so.*

$ ln -s libgmp.so.10.0.2 libgmp.so.3

抱歉!评论已关闭.