Linux(CentOS)下,AAPT解析APK的错误处理
刚装了个服务器,将原有的服务迁移过来后,发现在Linux(CentOS)下,AAPT解析APK,先后报了如下的错:
# /home/push/back/upload/tools/aapt d badging /home/push/upload/201408/1407140036213.apk
-bash: /home/push/back/upload/tools/aapt: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
/home/push/back/upload/tools/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
/home/push/back/upload/tools/aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
经查,发现是64位的系统,想运行32位的程序(aapt),从而找不到一些共享库;安装它们即可:
# yum install glibc*.i686
# yum install zlib*.i686
# yum install libstdc++.so.6
补充,如下命令查看系统版本:
#uname -r
2.6.32-431.20.3.el6.x86_64