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