64位 aapt linux
2015-01-22 09:26:01 WHACKW 阅读数 1505

aapt 执行错误  

2014-01-10 12:10:00|  分类: ANDROID|举报|字号 订阅


-bash: /usr/bin/aapt: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
查包
 yum whatprovides ld-linux.so.2 
安装
yum install -y glibc-2.12-1.107.el6.i686

1、centos 64位系统使用android 出现android-sdk-linux aapt error=2 

但是在centos上就要复杂一些。

1.yum install glibc.i686
之后发现如下错误error while loading shared libraries: libz.so.1,ok继续安装libz
2.sudo yum install zlib.i686
之后发现error while loading shared libraries: libstdc++.so.6,执行
3.sudo yum install libstdc++.i686


如果还是不可以,可以尝试下面的命令

sudo yum install libXrender.i686
sudo yum install fontconfig.i686
sudo yum install zlib.i686
sudo yum install libXext.i686
sudo yum install libstdc++.i686
如果还报2的错误 按下面方式执行

2、
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file 



在64位的linux(centos系统)中安装android-sdk后,运行aapt命令,出现
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
出现这种情况的原因是,aapt需要libstdc++的32位版本,系统应该只安装64位版本,可以通过rpm查看是否,命令:
    rpm -ql libstdc++ | cat -n  
    1  /usr/lib64/libstdc++.so.6  
    2  /usr/lib64/libstdc++.so.6.0.8  
说明没有安装32的libstdc++版本,需要安全32的,可以通过yum安装,先执行
    [root@BJ-NQ-V-PPD002 ~]# yum list | grep libstdc++  
    libstdc++.i386                             4.1.2-54.el5                nqyum  
    libstdc++.x86_64                           4.1.2-54.el5                installed  
    libstdc++-devel.x86_64                     4.1.2-54.el5                installed  
    compat-libstdc++-296.i386                  2.96-138                    nqyum      
    compat-libstdc++-33.i386                   3.2.3-61                    nqyum      
    compat-libstdc++-33.x86_64                 3.2.3-61                    nqyum      
    libstdc++-devel.i386                       4.1.2-54.el5                nqyum      
    libstdc++44-devel.i386                     4.4.7-1.el5                 nqyum      
    libstdc++44-devel.x86_64                   4.4.7-1.el5                 nqyum   
发现libstdc++.i386(注有的可能是i586), 然后执行安装命令
   yum -y install libstdc++.i386  
即可,安装完毕后,运行aapt命令就OK了。
2016-09-09 15:00:15 zhongbeida_xue 阅读数 913

本文为大家讲解的是64位linux无法运行Android sdk的adb和aapt,提示No such file or directory的错误解决办法 ,感兴趣的同学参考下.

错误描述:

在64位Debian上运行Android sdk目录下的adb和aapt提示: bash: ./aapt: No such file or directory

原因分析:

原因是Android sdk的文件都是在32位的库编译的,在64位系统上无法找到对应的库

解决方法:

首先执行 : sudo apt-get install lib32stdc++6

此时可以看到adb顺利运行了,但是aapt还是无法运行提示error while loading shared libraries: libz.so

此时执行: sudo apt-get install lib32z1 lib32z1-dev

运行aapt,问题解决.

2015-07-30 17:12:00 huangxianrong 阅读数 410

错误: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

解决方法:
对于Ubuntu13.10 64bit:
sudo apt-get install lib32z1

对于CentOS6.2 64bit 或者 Fedoras22 64-bit:
sudo yum install zlib.i686 libstdc++.i686
(亲测成功:我的系统是Fedoras21 64-bit的)

对于OpenSuse:
zypper install libz1-32bit




 

2018-04-27 15:41:00 weixin_33670713 阅读数 6

1. 运行aapt:

bash: ./aapt: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

2. 安装glibc.i686

yum install glibc.i686

3.再次运行aapt

aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

4.安装zlib.i686

yum install zlib.i686

报错: Protected multilib versions: zlib-1.2.7-17.el7.i686 != zlib-1.2.7-15.el7.x86_64

解决:yum install zlib.i686 --setopt=protected_multilib=false

5. 接着运行aapt

aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

6.安装libstdc++.i686

yum install libstdc++.i686

依然报错: Protected multilib versions: libstdc++-4.8.5-28.0.1.el7.i686 != libstdc++-4.8.5-4.el7.x86_64

因此使用: yum install libstdc++.i686 --setopt=protected_multilib=false

接着报错:

Transaction check error:
  file /usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.py from install of libstdc++-4.8.5-28.0.1.el7.i686 conflicts with file from package libstdc++-4.8.5-4.el7.x86_64
  file /usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.pyc from install of libstdc++-4.8.5-28.0.1.el7.i686 conflicts with file from package libstdc++-4.8.5-4.el7.x86_64
  file /usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.pyo from install of libstdc++-4.8.5-28.0.1.el7.i686 conflicts with file from package libstdc++-4.8.5-4.el7.x86_64

解决:yum update libstdc++-4.8.5-4.el7.x86_64

再次运行: yum install libstdc++.i686 安装成功

问题解决!

转载于:https://my.oschina.net/ayy/blog/1802251

2018-12-03 12:05:34 wkh___ 阅读数 1148

 

注:今天装新一台机器,发现下列url提示404。
这里把需要的包下下来传csdn了。如果命令无法下载可参考csdn下载地址:Linux的aapt工具包

 

下载apktool

wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool

 

下载apktool_2.2.1.jar并且重命名为apktool.jar

wget http://connortumbleson.com/apktool/apktool_2.2.1.jar

mv apktool_2.2.1.jar apktool.jar

 

下载aapt

wget http://connortumbleson.com/apktool/aapt/linux/aapt

 

新建/usr/local/apktool文件夹,将apktool,apktool.jar和aapt移进来

mkdir /usr/local/apktool

mv apktool apktool.jar aapt /usr/local/apktool

 

进入/usr/local/apktool文件夹赋予apktool,apktool.jar和aapt可执行权限

cd /usr/local/apktool

chmod +x apktool apktool.jar aapt

 

将apktool加入环境变量,修改/etc/profile,在最后一行添加如下内容

export PATH="$PATH:/usr/local/apktool"

 

使环境变量立即生效

source /etc/profile

上述原文地址:https://www.cnblogs.com/wjp1122/p/8984163.html

 

安装完成运行时如果linux提示:"libc.so.6: version GLIBC_2.14 not found"

欢迎移步另一篇博客:Linux 解决报错"libc.so.6: version GLIBC_2.14 not found"

没有更多推荐了,返回首页