I am using 64-Bit Linux, and when I Try to open an exe file from command line by the command wine somefile.exe I get an error which says:
wine: invalid directory prefix32 in WINEPREFIX: not an absolute pathNow, I tried to Debug that. In my root/ directory, there is already a folder called prefix32/ which contains these files:
dosdevices drive_c system.reg userdef.reg user.regMoreover, I also went to my Wine Folder by root/.wine Which contains files
dosdevices drive_c system.reg userdef.reg user.reg winetricks.logI also checked nano cat /etc/environment but it is currently empty. Now, I am actually clueless about how to debug this.
Running echo $WINEPREFIX gives me prefix32.
1 Answer
The exact error is self-explanatory: the WINEPREFIX environment variable needs to be an absolute path to the wine prefix.
Based on your echo $WINEPREFIX, it is only set to prefix32 which is going to be a relative path to your current directory.
If you know that your wine prefix is always going to be prefix32 then edit your ~/.bashrc to do this at the end:
export WINEPREFIX="/home/$USER/prefix32"If you only need it to use that prefix temporarily, then put it in front of your wine command:
WINEPREFIX=/home/$USER/prefix32 wine somefile.exe 2