First, install the Apktool package
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
Above three steps, completed the installation of the Apktool package
Then the 64-bit operating system to execute the AAPT command will report the error:
-bash:/usr/bin/aapt:/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory
The reason is that 32-bit programs are installed on 64-bit systems. Apktool is 32-bit
So in order to solve the above problem, we need to install: glibc.i686,zlib.i686,libstdc++.i686
If you are a cloud host, it is likely that you will be prompted when you follow these steps:
No Package glibc.i686 Available
No Package zlib.i686 available.
No Package libstdc.i686 available.
The reason is that cloud hosts are typically configured with pure 64-bit systems
At this stage, we are going to modify the Yum configuration file as follows:
There's a exclude option in the/etc/yum.conf, it's OK to erase this line.
Now go to the following three steps, then the appt command will execute properly.
1.yum Install glibc.i686
The following error was found after the while loading shared Libraries:libz.so.1,ok continues to install LIBZ
2.sudo Yum Install zlib.i686
After you find the error while loading shared libraries:libstdc++.so.6, execute
3.sudo Yum Install libstdc++.i686
Installing the appt command under CentOS 64-bit Linux system