How to run 32-bit programs on a 64-bit system
Solution 1
If you install the 32-bit compatibility libraries, you should be able to run 32 bit programs normally:
sudo apt-get install ia32-libs
Note: if you use Ubuntu 13.10 or higher, you'll need install these packages instead:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
Solution 2
According to the error message that I got trying to install ia32-libs, the following should work to install the replacement libraries.
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
This seems to install correctly, but I am still getting an error when I try to run my 32 bit application:
error while loading shared libraries: libpangox-1.0.so.0: wrong ELF class: ELFCLASS64
So evidently there is another step needed.
Apad121
Updated on September 18, 2022Comments
-
Apad121 over 1 year
Recently I upgraded my netbook to Ubuntu 13.04 64-bit from Ubuntu 13.04 beta 2 32-bit.
I want to be able to run 32-bit programs (such as WPS, which is a clone of MS Office 2012) on my PC.
How do I do it? Is there an easy way of doing it via the terminal?
-
Qasim almost 11 years64 bit os can run 32 bit + 64 bit programs , where as 32 bit can run only 32 bit programs ...by the way how come you have upgraded from 32 bit to 64 bit ?
-
Apad121 almost 11 yearsthe reason i did it was because on the download page it says that if you run windows 8 or any uefi firmware you should use the 64bit version. i can not really see much diference to be honest.
-
psusi almost 11 yearsWhat program, and why?
-
Apad121 almost 11 yearsi wanted to have it so i could run wps.
-
Qasim almost 11 years@apad121 got it .......Suggestion : you should update these details in your question
-
-
c_korn over 10 yearsPlease note that this package does not exist in Ubuntu 13.10 any longer. You have to install all the required i386 libraries.
-
OSE over 10 yearsTo get the 32-bit version you should install the packages with a trailing
:i386
. See this answer for more details. -
Robin Winslow over 10 years@c_korn which are?
-
Genba over 9 yearsAs @c_korn points out, this package can't be installed on newer Ubuntu releases. I've just tried this on 14.04 and didn't work, but this other question turned out to be useful. By running
sudo dpkg --add-architecture i386
I've been able to installwine
, which was previously causing apt to fail because "the package is not installable". -
Fernando Paladini about 9 yearsFor Ubuntu versions >= 13.10, use
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
instead. -
Ben over 6 yearsIts not extra setup. It only proves that wine has massive dependency on a lot of system libraries, installing wine just helped you install the i386 version of all these common dependencies.