Compiled Wine forwards to local Wine

Questions about Wine on Linux
Locked
Sworddragon
Level 2
Level 2
Posts: 19
Joined: Thu Sep 27, 2012 5:32 pm

Compiled Wine forwards to local Wine

Post by Sworddragon »

On my system (Ubuntu 14.10 dev x86_64) there is currently Wine 1.7.24 from a ppa installed and I'm also sometimes compiling Wine from the current git and using it. But currently I'm noticing some strange issues. First here is my current Wine setup:

Code: Select all

sworddragon@ubuntu:~$ /usr/bin/wine --version
wine-1.7.24
sworddragon@ubuntu:~$ WINEPREFIX=~/.wine-git /usr/local/wine-git/wine64 --version
wine-1.7.25
Now I'm renaming the local installed wine executable as this makes it easier to see the issue:

Code: Select all

sworddragon@ubuntu:~$ sudo mv /usr/bin/wine /usr/bin/wine_tmp
Now a normal and a more direct test with wine-git to check if it works:

Code: Select all

sworddragon@ubuntu:~$ WINEPREFIX=~/.wine-git /usr/local/wine-git/wine64 winecfg && echo $?
0
sworddragon@ubuntu:~$ WINEPREFIX=~/.wine-git /usr/local/wine-git/loader/wine64 winecfg && echo $?
0
winecfg has successfully appeared and showed me in "About" version 1.7.25. But if I'm trying to execute some other application the problem appears:

Code: Select all

sworddragon@ubuntu:~$ WINEPREFIX=~/.wine-git /usr/local/wine-git/wine64 '/wine/drive_c/Program Files (x86)/Guild Wars 2/Gw2.exe'
/usr/bin/wine: could not open
sworddragon@ubuntu:~$ WINEPREFIX=~/.wine-git /usr/local/wine-git/loader/wine64 '/wine/drive_c/Program Files (x86)/Guild Wars 2/Gw2.exe'
/usr/bin/wine: could not open
For some reason the wine-git executable forwards to the local installed Wine executable. If I wouldn't have renamed the local installed Wine executable I would get logically a version mismatch:

Code: Select all

sworddragon@ubuntu:~$ sudo mv /usr/bin/wine_tmp /usr/bin/wine    
sworddragon@ubuntu:~$ WINEPREFIX=~/.wine-git /usr/local/wine-git/wine64 '/wine/drive_c/Program Files (x86)/Guild Wars 2/Gw2.exe'
wine client error:0: version mismatch 457/456.
Your wine binary was not upgraded correctly,
or you have an older one somewhere in your PATH.
Or maybe the wrong wineserver is still running?
sworddragon@ubuntu:~$ WINEPREFIX=~/.wine-git /usr/local/wine-git/loader/wine64 '/wine/drive_c/Program Files (x86)/Guild Wars 2/Gw2.exe'
wine client error:0: version mismatch 457/456.
Your wine binary was not upgraded correctly,
or you have an older one somewhere in your PATH.
Or maybe the wrong wineserver is still running?
Has somebody an idea why this issue happens and how to solve it?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Compiled Wine forwards to local Wine

Post by dimesio »

Code: Select all

sworddragon@ubuntu:~$ WINEPREFIX=~/.wine-git /usr/local/wine-git/wine64 '/wine/drive_c/Program Files (x86)/Guild Wars 2/Gw2.exe'
The wineprefix you set in the command (~/.wine-git) is not the wineprefix where the app you are trying to run is installed (/wine). You also appear to be trying to run a 32 bit app with pure 64 bit Wine. Neither of those things are going to work.
Sworddragon
Level 2
Level 2
Posts: 19
Joined: Thu Sep 27, 2012 5:32 pm

Re: Compiled Wine forwards to local Wine

Post by Sworddragon »

dimesio wrote:The wineprefix you set in the command (~/.wine-git) is not the wineprefix where the app you are trying to run is installed (/wine).
This is wanted on my system as I prefer applications to not be installed in the users directory. Also "~/.wine-git/drive_c/Program Files" is a symlink to "/wine/drive_c/Program Files (x86)".

dimesio wrote:You also appear to be trying to run a 32 bit app with pure 64 bit Wine.
Both assumptions are correct but I was successfully able to run 32 bit applications with this constellation in the past. Or is it normal that a 64 bit Wine tries automatically to forward to a 32 bit Wine if a 32 bit application is started? This would mean that I was running all the time applications with a 64 bit wineserver from the git and a 32 bit wineclient with the local installed Wine from the ppa and that I was just lucky that there was no version mismatch until today. Or am I wrong with this assumption?
Locked