Code:
sudo pkg install i386-wine
sudo pkg fetch wine
sudo mkdir /opt/wine-3.0
cd /opt/wine-3.0
sudo tar -xf /var/cache/pkg/wine-3.0,1.txz
This is a really nice simple solution, and I thought I could adapt it a bit to avoid installing either of the wine packages into my base system (and keeping wine contained to a "wine" user/group) by doing the following;
1) Created a "wine" user and group
2) Fetched both "i386-wine" and "wine" packages using
pkg fetch
3) Extracted both packages from
/var/pkg/cache into
/home/wine/wine32 and
/home/wine/wine64 respectively
4) Created a shell script
explorer.sh to set the prefix, paths, etc, for running explorer.exe (see snippet below)
Code:
#!bin/sh
WINEPREFIX=~/.wine
PATH=~/wine64/usr/local/bin:~/wine32/usr/local/bin:$PATH
wine64 $WINEPREFIX/drive_c/windows/explorer.exe
This seemed to be working ok, so downloaded the game FTL from GOG and installed it without issue through windows explorer using the above script. I then created a new script
ftl.sh to run the game as follows;
Code:
#!bin/sh
WINEPREFIX=~/.wine
PATH=~/wine64/usr/local/bin:~/wine32/usr/local/bin:$PATH
wine64 $WINEPREFIX/drive_c/GOG\ Games/FTL\ Advanced\ Edition/FTLGame.exe
However, when I run the script I get the following error;
Failed to load libGL: Shared object "libGL.so.1" not found, required by "wine"
I thought I may also need to set LD_32_LIBRARY_PATH in the
ftl.sh script so tried adding the following to no avail;
Code:
LD_32_LIBRARY_PATH=~/wine32/usr/local/lib32:~/wine32/usr/local/lib32/wine:$LD_LIBRARY_PATH:/usr/local/lib32:/usr/lib32
Any ideas what could be the issue and how to fix? It's probably to do with ldconfig and the paths but I can't figure it out! :-(
Thanks,
James