Install Wine 64 Bit While Retaining Wine 32 Bit on Ubuntu 16

Questions about Wine on Linux
Locked
notabot
Newbie
Newbie
Posts: 2
Joined: Thu Feb 16, 2017 7:07 am

Install Wine 64 Bit While Retaining Wine 32 Bit on Ubuntu 16

Post by notabot »

I have been having problems running games on Windows 10 and have successfully got some older Steam games running using Wine 32 bit on Ubuntu 16.04 64 bit OS. However, one of my Steam games wants a 64 bit operating system. I would like to install Wine 64 bit without disturbing the Wine 32 bit installation. Can I do this? I know that PlayOnLinux is an option but I would prefer to use Wine directly - I have had more success this way on the 32 bit system and I also find that I learn more about Wine by using it directly.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Install Wine 64 Bit While Retaining Wine 32 Bit on Ubunt

Post by dimesio »

I don't know where you got Wine from, but both the distro packages and the WineHQ ones include both 32 and 64 bit Wine in a shared WoW64 setup, so if you are using one of them, you already have 64 bit Wine installed.

If you are asking about the wineprefix, just create a separate, 64 bit one.
notabot
Newbie
Newbie
Posts: 2
Joined: Thu Feb 16, 2017 7:07 am

Re: Install Wine 64 Bit While Retaining Wine 32 Bit on Ubunt

Post by notabot »

Thanks for your help. When I installed wine I used the following commands
(found from http://ubuntuhandbook.org/index.php/201 ... e-new-ppa/):

$ sudo add-apt-repository ppa:ubuntu-wine/ppa
$ sudo apt-get update
$ sudo apt-get install wine1.8 winetricks
$ sudo dpkg --add-architecture i386
$ sudo add-apt-repository ppa:wine/wine-builds
$ sudo apt-get update
$ sudo apt-get install --install-recommends winehq-devel

I then installed a number of DLLs using Winetricks and my 32 older 32 bit games worked ok.

In response to your suggestions I tried to set up:

$ WINEARCH=win64 WINEPREFIX=~/.wine64 winecfg

but I got an error message that the files had been created system was 32 bit (i guess implying that 64 bit was not installed).
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Install Wine 64 Bit While Retaining Wine 32 Bit on Ubunt

Post by Bob Wya »

notabot wrote:In response to your suggestions I tried to set up:

Code: Select all

WINEARCH=win64 WINEPREFIX=~/.wine64 winecfg
but I got an error message that the files had been created system was 32 bit (i guess implying that 64 bit was not installed).
The defauit WINEPREFIX architecture is 64-bit - on a 64-bit Linux install.

This command:

Code: Select all

WINEARCH=win64 WINEPREFIX=~/.wine64 winecfg
can fail, on a 64-bit Linux install, if the directory:

Code: Select all

${HOME}/.wine64
already exists and is configured as a 32-bit WINEPREFIX...

You should see the error:

Code: Select all

wine: WINEARCH set to win64 but '/home/~~~~/.wine64' is a 32-bit installation.
in this instance.

What about:

Code: Select all

export WINEPREFIX=~/.wine64
rm -rf ~/.wine64
WINEARCH=win64  winecfg
Does that fail as well?

Bob

P.S. Forum

Code: Select all

Code
[/size] tags - please use them...!! 8)[/color]
wildtux
Level 3
Level 3
Posts: 56
Joined: Sat Aug 13, 2016 10:05 am

Re: Install Wine 64 Bit While Retaining Wine 32 Bit on Ubunt

Post by wildtux »

Bob is right, but it's maybe better to install Steam on a separate wineprefix.
I can invite you to use my script, because it manage this kind of issues, but I'm not very good to do my own promotion. :)
Locked