Linux installation aapt problem libstdc++-4.4.7-16.el6.i686! = libstdc++-4.4.7-11.el6.x86_64

Source: Internet
Author: User

Recently the amateur ror put on the hand, some work to deal with. Previously obtained APK information in Windows, recently intends to get APK information in Linux, to make work more intelligent.


When I saw "the Linux command line", I thought I knew some basic instructions, but in fact, when you wanted to use this system, you needed more than that. Back to learn the script.


The urgent task now is to run out of AAPT first.


1, install AAPT tools.

Reference: http://www.aichengxu.com/view/25283


Download the toolkit, download it to the package without a ladder and upload it to the server yourself.

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

Unzip
$ TAR-JXVF apktool-install-linux-r04-brut1.tar.bz2

Moving files
$ MV Aapt/usr/bin
$ MV Apktool/usr/bin


Input AAPT command, console output
-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, and Apktool is 32-bit.


2. View the Linux version information and the number of system bits.

Then I need to know what my machine is, which version of Linux has a number of digits.

$ cat/etc/issue
CentOS release, known to be a CentOS distribution
$ file/sbin/init
/sbin/init:elf 64-bit LSB Shared object, x86-64, is 64 bits.
The 32-bit is 32 bits.


3. Installation package and problem appearance

Just starting the installation I was referring to this: http://michaelzqm.iteye.com/blog/1881576

$ yum install-y glibc-2.12-1.107.el6.i686
This was the dress, but the mistake was reported.
No Package glibc-2.12-1.107.el6.i686 available.
Search the Internet, changed a version of the package.
$ yum install-y glibc-2.12-1.166.el6.i686


Feel the previous link to write the introduction a little pit, so follow the other one to install:
Http://www.aichengxu.com/view/25283,centos 64-bit Linux system Install appt Command Apktool Toolkit notes


Execution at this time
$ aapt
-bash:/usr/bin/aapt:/lib/ld-linux.so.2:bad ELF Interpreter: No file or directory
Install package
$ yum Install glibc.i686
After the installation is complete, continue to execute
$ aapt
Aapt:error while loading shared libraries:libz.so.1:cannot open Shared object file:no such file or directory
Continue with the installation package
$ yum Install zlib.i686
After the installation is complete, continue to execute
$ aapt
Aapt:error while loading shared libraries:libstdc++.so.6:cannot open Shared object file:no such file or directory
Continue with the installation package
$ sudo yum install libstdc++.i686


The problem arises:
Error during installation:
error:protected multilib versions:libstdc++-4.4.7-16.el6.i686! = libstdc++-4.4.7-11.el6.x86_64


To update, note that the updated version is to update the above. i686 section 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 was successful.


AAPT Normal execution
$ aapt
Android Asset Packaging Tool

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


The problem should be the version of the package and the number of bits, although not too understanding, but according to that idea, depending on the output version of the console also has a version of the Web, modified or can be adjusted to pass.


Online an article copied to copy, a word does not change, also does not indicate the original source, is also disorderly.



Linux installation aapt problem libstdc++-4.4.7-16.el6.i686! = libstdc++-4.4.7-11.el6.x86_64

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.