When installing Wine on 64-bit Ubuntu 12.04, both 64-bit support and 32-bit support get installed. If I run wine foo.exe
where foo.exe
is a 64-bit-aware installer, it thinks it's on 64-bit Windows. This would be fine if this mode didn't fail, but in my case, it does (yet the Wine database suggests the app I'm trying to install should work, presumably as a 32-bit app).
How do I tell Wine (and Winetricks) to use Wine in 32-bit-only mode?
It turns out that to make Wine run in 32-bit-only mode, one needs to:
Remove
~/.wine
if it was already created in the 64-bit mode. (WARNING: This removes all stuff you have installed under Wine. Move it aside instead if you want to avoid dataloss.)Set the
WINEARCH
environment variable towin32
i.e.export WINEARCH=win32
Then run
wine
(orwinetricks
, etc.)Install
playonlinux
there you will have this option. It is a frontend to wine, and makes it far better.This picture was taken on a 12.04 - 64bit system.
You can in an easy way copy all win32 files into .wine to substitute the lesser need to change all run commands as well. By avoiding doing to much changes to the system in another hand. At first, run the command:
Assume you already made a run of making .wine with 64bit compatibility. If not you are still able to make a folder called .wine instead in your home directory.
Then copy all content of prefix32 found in your home directory to your .wine content area both files and directories, first either backup or just remove the content in the directory .wine if you already are planning running 32bit arch of wine, don't overwrite content! Rather delete if you already made a backup.
Remember that directory .wine might be hidden, any use of seeing hidden files will make you be able to see the folder in your home directory. You can as well use the Go in Thunar with Ubuntu to either just go straight into the folder called .wine in the home directory and make the process as told here before.
You can run 32-bit Windows programmes on a 64-bit Linux machine with wine by installing playonlinux.
sudo apt install playonlinux
.playonlinux &
.Install Play on linux as said before , i did it in like 1 minute , What you need to have:
Try to remove .wine and export a wine prefix:
While you can not run within the same containers you can actually still have both by setting up Biarch. Please see this Wine white paper on setup. While hsivonen gives you the easiest answer this would be the way to achieve your desired functionality.
https://wiki.winehq.org/Building_Biarch_Wine_On_Ubuntu