aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file
来源:互联网 发布:java accept encoding 编辑:程序博客网 时间:2024/04/29 16:16
在Ubuntu等64为Linux下安装google android的时候会提示:
aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such
当使用apt-get install ~~~安装的时候却提示已经安装,或者是未发现软件包,
其实这是因为64位系统中安装的libstdc++是64位的而SDK需要的是32位的原因:
解决办法:
sudo apt-get install lib32ncurses5 lib32stdc++6
还不行在安装:
sudo apt-get install ia32-libs
这样SDK就可一正常的在64位环境下编译了
Today I had to reinstall the Android plugin on my system and I recently upgraded to a 64-bit development VM. To my surprise the installation didn’t go smoothly at all. After restarting Eclipse twice I was constantly presented with two error messages “Failed to parse the output of ‘adb version’” and “adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory”. Your system may also present another error message that reads “adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory”.
I could see that it was looking for libncurses.so.5 however I know that ncurses is already installed on my machine in /lib as /lib/libncurses.so.5. So where exactly was Eclipse/adb looking for it? It turns out that it wants to find its libraries in the /lib32 directory but you can’t just symlink it or you’ll get an error that reads “wrong ELF class: ELFCLASS64″. adb needs to have the 32-bit versions installed or it won’t function at all.
So to get up and running just run the following command to fix the issue:
sudo apt-get install lib32ncurses5 lib32stdc++6
After that just restart Eclipse and the issue should be fully put to bed. Let me know how it works out for you or if you run into trouble.
If you still run into trouble like an error message that reads “aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory” you need to install the ia32-libs like this:
sudo apt-get install ia32-libs
Then rebuild your project and the errors should be gone.
UPDATE 2012-02-14: Rortian reports that the following command words on Fedora 16:
yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686
- aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file
- aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file
- aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such
- aapt: error while loading shared libraries: libc++.so: cannot open shared object file: No such file
- 解决aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: Nosuchfile
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or di
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or di
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or
- 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
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- ./server: error while loading shared libraries: libzmq.so.1: cannot open shared object file: No such
- mecab: error while loading shared libraries: libmecab.so.1: cannot open shared object file: No such
- Android项目出错aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: N
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file
- RHEL六(监控和管理Linux进程)
- 【system】解决window7/8不能全屏,或者出现黑边的问题
- Android ListView下拉/上拉刷新:设计原理与实现
- MATLAB下使用libsvm (二)
- hd2899
- aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file
- 如何在Ubuntu手机平台中开发Cordova HTML5应用
- nodejs this
- NULL和nullptr
- 有用链接记录
- jquery动态创建form表单
- Android性能测试 一些适用于Android Studio的代码审查和性能测试工具
- 1.C++面向对象程序设计
- 单例模式之懒汉式和饿汉式