Installing the appt command under CentOS 64-bit Linux system

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.