1. wget http:
//android-apktool.googlecode.com/files/apktool-install-linux-r04-brut1.tar.bz2
2.
tar -jxvf apktool-install-linux-r04-brut1.tar.bz2
3.
mv aapt /usr/bin
mv apktool /usr/bin
4 错误处理
-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
/usr/bin/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
yun whatprovides */libz.so.1
Error: Protected multilib versions: zlib-1.2.3-29.el6.i686 != zlib-1.2.3-27.el6.x86_64
yum install zlib
yum install -y zlib-1.2.3-29.el6.i686
Error: Protected multilib versions: libstdc++-4.4.7-3.el6.i686 != libstdc++-4.4.6-4.el6.x86_64
yum install -y libstdc++
yum install -y libstdc++-4.4.7-3.el6.i686
查看依赖
ldd /usr/bin/aapt
在64位centos下不能运行32位程序的问题解决:
bash: /usr/bin/aapt: 没有那个文件或目录
yum install glibc.i686