How to run 32-bit applications in 64-bit Linux

Source: Internet
Author: User

Most Linux distributions have versions for x86_64 processors. Typical x86_64 processors include ADM Athlon II and Intel Xeon. These Linux distributions all have their own software sources that provide Binary packages for all the application software it supports. If you are satisfied with the Linux installation method, you may not need to run a 32-bit program.

Some Linux commercial software, especially games, only provides 32 versions. For some special reason, you may need to configure your computer to run 32-bit software.

Install a 32-bit support library

Because the x86_64 processor is involved in x86 technology, it also supports 32-bit programs. In Linux, all you need to do is install necessary software libraries for these software. Fortunately, most Linux releases have packed these packages. For example, in Ubuntu, this package is called a ia32-libs. To install it, you can open a terminal and enter the following content:

Sudo apt-get install ia32-libs

In Kubuntu, you can also install Synaptic and Kpackagekit on the GUI. Once installed, more configurations are no longer required for software such as games.

Graphics Problems

When you run 32-bit software in a 64-bit environment, Ubuntu still looks for the default GTK engine. This leads to an error in wrong ELF class. This situation is especially annoying when you run some specific software, such as Chrome, a new open-source Google browser version. Ubuntu does have installed the 32-bit GTK engine on the/usr/lib32/gtk-2.0, but the GTK project I used was not found at this location. The quick solution is as follows:

1. Find the 32-bit package for your current topic. For example, I searched for ubuntu packages

2. Download the package and decompress it.

3. Find the library file for the topic

4. Copy the Library to the lib32 path:

Sudo cp ~ /Download-directory/usr/lib/gtk-2.0/2.10.0/engines/libqtcurve. so/usr/lib32/gtk-2.0/2.10.0/engines/

For example, Chrome, its needs can be set in the startup script:/user/lib32/gtk-2.0 if the startup script of the program is not viewed while you are running, but to find/user. lib/gtk-2.0, you may need to modify the startup script or output and set an environment variable in the terminal:

Export GTK_PATH =/usr/lib32/gtk-2.0 command-to-start-app

If a program does not have a STARTUP script, you can set the environment variable as above.

Other errors

I have discovered applications like Boxee that cannot run well in a 64-bit system in any situation, even if a 32-bit library file is installed. At this time, the only feasible method is to run under the root.

  1. Linux temporary file security
  2. Integrate cvstrac with CVS in Linux
  3. Mac and Linux will face new vulnerability attacks

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.