Wine - need some help please

Associate
Joined
28 Oct 2002
Posts
1,510
Running Ubuntu 12.04 64 bit

Wanted to install dotnet20 with winetricks but it won't install on a 64 bit system

so i found this....
Install wine. If you installed 64-bit wine then do export WINEARCH=win32 (as .NET 2 requires 32-bit environment). Then run the command: sh winetricks dotnet20 gdiplus


BUT this didn't work and has now messed up my wine install - any easy way to put things back as they were?


bane2@bane2-EX58-UD5:~$ export WINEARCH=win32
bane2@bane2-EX58-UD5:~$ sh winetricks dotnet20 gdiplus
sh: 0: Can't open winetricks
bane2@bane2-EX58-UD5:~$ winetricks dotnet20 gdiplus
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string
------------------------------------------------------

THEN WINE STOPPED WORKING I.E.
bane2@bane2-EX58-UD5:~$ winecfg
wine: WINEARCH set to win32 but '/home/bane2/.wine' is a 64-bit installation.

HOPED THIS MIGHT CORRECT THINGS
bane2@bane2-EX58-UD5:~$ export WINEARCH=win64

BUT IT SEEMS IT DIDN'T
bane2@bane2-EX58-UD5:~$ winecfg
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory


Any help appreciated

thanks

EDIT actually winecfg does open but am still not sure if things are affected behind the scenes so to speak
 
Last edited:
generally its wineprefix specific so once you have used a prefix to install a 64 or 32 bit program itll be that type of prefix, so its much easier to make a new one than to convert a 64 back a to a 32, use something like this

env WINEPREFIX=~/.wine32 env WINEARCH=win32 wine "your program here"

while keeping your default ~/.wine as 64 bit
 
thanks

a couple of other questions

would export WINEARCH=win64 set it back to 64 bit, and how do i actually tell whether its 32 or 64 bit?

cheers

diss
 
when you create a wineprefix itll be 64 or 32 bit using WINEARCH=win64 wont change it back unless you delete the whole folder and remake it, this is why you got
Code:
WINEARCH set to win32 but '/home/bane2/.wine' is a 64-bit installation.
because even though you set WINEARCH= win32 for dotnet the wineprefix folder is still 64 with all the win64 dlls in its system folder
 
Back
Top Bottom