Ubuntu 12.04 64-bit settings compatible with 32-bit implementations

Source: Internet
Author: User

On ubuntu12.04, to run a 32 program, you need to install a 32-bit compatibility library.

Previously successfully installed on 10.04, by

sudo apt-get install Ia32-libs

But in 12.04, encountered difficulties, encountered the following error

$ sudo apt-get install Ia32-libs
Reading Package List ... Complete
Analyzing Dependency tree for Package
Reading status information ... Complete
Some software packages cannot be installed. If you are using the unstable release, this may be
Because the system is unable to achieve the state you requested. There may be some software that you need in this release
The packages have not been created or they have been removed from the new to (Incoming) directory.
The following information may be helpful in resolving a problem:


The following packages have unsatisfied dependencies:
Ia32-libs: Dependency: Ia32-libs-multiarch
E: Error cannot be corrected because you require certain packages to remain current, that is, they destroy the dependencies between software packages

There is no proper way to find it online.

Finally, Google (or better than Baidu), although not found the library installation method, but found the solution: the installation of the required 32-bit library

$ sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386

I was meant to run ADB. When running ADB, found lack of libncurses5 library, hands-on, clothed, Bishi,

sudo apt-get install libncurses5:i386

Under 64 bits, the GCC default compiles code bits 64 bits, but if you want to compile bits, you can use the GCC-M32 option to set.

Unfortunately, however, there will be errors, saying that/usr/include/features.h files cannot be found or something. Google, found in this way:

sudo apt-get install G++-multilib

You can do it.

OK, so it's finally all running up!

Ubuntu 12.04 64-bit settings compatible with 32-bit implementations

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.