Portál AbcLinuxu, 10. května 2025 20:27
ERRLOG=/tmp/dllerrlog.log WINESYSDIR=$( winepath -u c:\\windows\\system32 2> $ERRLOG ) if [[ ${WINESYSDIR} == *"/system32" ]]; then echo "Prefix is 32 bit" # do 32 bit stuff here... elif [[ ${WINESYSDIR} == *"/syswow64"* ]]; then echo "Prefix is 64 bit" # do 64 bit stuff here... else echo "Unknown wine architecture" fi/bin/bash ./test_wine.sh
Prefix is 32 bit
wine: Bad EXE format for F:\home\pi\Downloads\winbox.exe
file `which wine` file 'F:\home\pi\Downloads\winbox.exe'
which wine /usr/bin/wine
file `which wine` /usr/bin/wine: symbolic link to /etc/alternatives/wine
file 'F:\home\pi\Downloads\winbox.exe' F:\home\pi\Downloads\winbox.exe: cannot open `F:\home\pi\Downloads\winbox.exe' (No such file or directory)
file /etc/alternatives/wine file /home/pi/Downloads/winbox.exe
file /etc/alternatives/wine
To bude další symlink, a řeší se to pomocí file -L
(a když už jsme u toho tak si rovnou zapamatujte file -Ls
).
Každopádně mě zarazilo to /home/pi
, nezkouší to spouštět na ARMu?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.