error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
2014-09-20 11:05
573 查看
在linux上安装Android开发环境时,R文件不能生成。提示libz.so.1找不到。。。。执行aapt果然报错了。折腾了半天。
在网上找到一篇文章,查找该库的进行安装,终于解决了,在此记录下。。
1 到sdk目录 tools下执行 ./aapt ,根据报错信息,查看缺少的库
2 执行以下命令,查看谁提供该库 如
yum whatprovides ld-linux.so.1
把所有的都安装后
3 再次执行 aapt,同时在eclipse里也能正常生存R文件了。
另外,直接使用yum install eclipse 安装的eclipse 不能安装adt。。。浪费了好长时间。。可以直接去谷歌官网去下载一个集成ad的 eclpset版本
在网上找到一篇文章,查找该库的进行安装,终于解决了,在此记录下。。
1 到sdk目录 tools下执行 ./aapt ,根据报错信息,查看缺少的库
2 执行以下命令,查看谁提供该库 如
yum whatprovides ld-linux.so.1
把所有的都安装后
3 再次执行 aapt,同时在eclipse里也能正常生存R文件了。
另外,直接使用yum install eclipse 安装的eclipse 不能安装adt。。。浪费了好长时间。。可以直接去谷歌官网去下载一个集成ad的 eclpset版本
相关文章推荐
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- 解决:CentOS下的 error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or dir
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or di
- 编译Uboot时提示error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
- as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or
- android-sdks/build-tools/17.0.0/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
- ./bin/logServer: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or dir
- sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
- ./ProjectC: error while loading shared libraries: libProjectC.so: cannot open shared object file: No such file or directory
- error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
- error while loading shared libraries: libperl.so: cannot open shared object file: No such file or di
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- 动态链接库找不到 : error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
- git: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
- error while loading shared libraries: libpcap.so.2: cannot open shared object file: No such file or
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or d