缺少编译库libgmp.so.3: cannot open shared object file: No such file解决方案
2016-08-28 12:28
645 查看
编译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
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
相关文章推荐
- ubuntu安装ghc遇到的问题 缺少编译库libgmp.so.3: cannot open shared object file: No such file解决方案
- 缺少编译库libgmp.so.3: cannot open shared object file: No such file解决方案
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- ImportError: libclntsh.so.11.1: cannot open shared object file: No such file or directory解决方案
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态链接库: libthrift-0.9.3.so: cannot open shared object file: No such file or directory
- 编译Emacs出现libgif.so.7: cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- linux gcc 编译的so文件 运行时无法找到 错误:cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory
- 缺少动态连接库.so--cannot open shared object file: No such file or directory