My wine met some problems while executing Windows executable file:
$ wine GECacheBldr.exe
zsh: bad CPU type in executable: wineHow to fix this?
PS: My wine is installed using HomeBrew:
$ brew cask install wine-stableEDIT
Cannot execute winecfg either:
$ winecfg
/usr/local/bin/winecfg: line 46: /usr/local/bin/wine: Bad CPU type in executable
/usr/local/bin/winecfg: line 46: /usr/local/bin/wine: Undefined error: 0 2 3 Answers
Try
file `which wine`If it says something in the lines of Mach-O executable i386: Apple dropped support for 32bit executables with Catalina 10.15.
You might want to try wine64 instead of wine.
try to edit winecfg file, comment this line
if [ -x "$appdir/wine" ]; then exec "$appdir/wine" "$appname" "$@"; fiit should look like that
#if [ -x "$appdir/wine" ]; then exec "$appdir/wine" "$appname" "$@"; fi 1 I did
rm /usr/local/bin/winethen
ln -s /usr/local/bin/wine64 /usr/local/bin/winebecause "wine" is the 32bit version which is tried first by all scripts and apparently OS X does not provide a compatibility layer for 32bit.
It basically works but so far I wasn't able to do everything I need, I still got errors when executing some wine related commands.
Another options I tried with more success in prepending WINE=/usr/local/bin/wine64before every wine related commands I want to run, including winetricks