Linux aapt installation: libstdc ++-4.4.7-16. el6.i686! = Libstdc ++-4.4.7-11. el6.x86 _ 64

Source: Internet
Author: User

Linux aapt installation: libstdc ++-4.4.7-16. el6.i686! = Libstdc ++-4.4.7-11. el6.x86 _ 64

Recently, I put my spare ROR aside, and I have to deal with some work on hand. I used to obtain apk information in windows. Recently, I plan to obtain apk information in Linux to make my work more intelligent.

When I read The linux command line, I thought I could understand some basic commands. But in fact, when you want to use this system, you need more than that. I will go back and learn the script later.

Now it is imperative to run aapt first.

1. Install the aapt tool.

Download the toolkit. If you do not have a ladder, download it to this package and upload it to the server.

$ Wget http://android-apktool.googlecode.com/files/apktool-install-linux-r04-brut1.tar.bz2

Extract
$ Tar-jxvf apktool-install-linux-r04-brut1.tar.bz2

Move files
$ Mv aapt/usr/bin
$ Mv apktool/usr/bin

Enter the aapt command and console output
-Bash:/usr/bin/aapt:/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
The reason is that the 32-bit program is installed in the 64-bit system, and the apktool is 32-bit.

2. view the linux version information and system digits.

Then I also need to know which version of linux is installed on my sub-device and which has the number of digits.

$ Cat/etc/issue
CentOS release, which can be known as The CentOS release
$ File/sbin/init
/Sbin/init: ELF 64-bit LSB shared object, x86-64, 64-bit.
32-bit: 32-bit.

3. Installation packages and Problems

At the beginning of the installation I was referring to this: http://michaelzqm.iteye.com/blog/1881576

$ Yum install-y glibc-2.12-1.107.el6.i686
This error was reported when I dress like this.
No package glibc-2.12-1.107.el6.i686 available.
I searched the internet and changed the version of the package.
$ Yum install-y glibc-2.12-1.166.el6.i686

I feel that the introduction written in the previous link is a bit pitfall, so install it according to another one:
Notes on installing the appt command in 64-bit linux http://www.aichengxu.com/view/25283,centos

Run
$ Aapt
-Bash:/usr/bin/aapt:/lib/ld-linux.so.2: bad ELF interpreter: No file or directory
Installation Package
$ Yum install glibc. i686
Continue after installation
$ Aapt
Aapt: error while loading shared libraries: libz. so.1: cannot open shared object file: No such file or directory
Continue installation package
$ Yum install zlib. i686
Continue after installation
$ Aapt
Aapt: error while loading shared libraries: libstdc ++. so.6: cannot open shared object file: No such file or directory
Continue installation package
$ Sudo yum install libstdc ++. i686


The problem occurs:
An error is reported during installation:
Error: Protected multilib versions: libstdc ++-4.4.7-16. el6.i686! = Libstdc ++-4.4.7-11. el6.x86 _ 64

Update. Note that the updated version is to update the. i686 section above to x86_64.
$ Yum update libstdc ++-4.4.7-16. el6.x86 _ 64

$ Aapt
Aapt: error while loading shared libraries: libstdc ++. so.6: cannot open shared object file: No such file or directory

Back to the original step:
$ Yum install libstdc ++. i686
This installation is successful.

Aapt runs normally
$ Aapt
Android Asset Packaging Tool

Usage:
Aapt l [ist] [-v] [-a] file. {zip, jar, apk}

The problem should be the version and number of digits of the package. Although I don't know much about it, I can modify the version based on the output version of the console and the version available on the Internet.

The previous article on the Internet was copied. The original source is not changed, and it is also messy.

Related Article

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.