Error handling of AAPT parsing APK under Linux (CentOS)

I just installed a server, and after migrating the original service, I found that under Linux (CentOS), AAPT parsed the APK and reported the following errors successively:
# /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
After investigation, it was found that it was a 64-bit system and wanted to run a 32-bit program (aapt), so some shared libraries could not be found; Available:
# yum install glibc*.i686
#yum install zlib*.i686
# yum install libstdc++.so.6

supplement, the following command to check the system version:
# uname -r
2.6.32-431.20.3.el6.x86_64

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326529001&siteId=291194637