bad CPU type in executable: wine @ macOS Catalina

1

My wine met some problems while executing Windows executable file:

$ wine GECacheBldr.exe
zsh: bad CPU type in executable: wine

How to fix this?

PS: My wine is installed using HomeBrew:

$ brew cask install wine-stable

EDIT

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

ycao

Posted 2020-01-01T11:01:25.603

Reputation: 113

Answers

3

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.

jvb

Posted 2020-01-01T11:01:25.603

Reputation: 1 697

How to run a 32-bit Windows executable file? Or I can never use them? – ycao – 2020-02-06T12:06:25.370

Alas, not with wine on Catalina 10.15 any more. You could use a virtual machine (like VirtualBox - it's free), but then you would need a Windows license, and have to install Windows inside the VM. – jvb – 2020-02-06T12:42:43.727