如何在Mac的Wine中修复“前缀创建退出错误”?

Ben*_*Sun 6 macos wine

当我在 WineBottler 中安装一个 .exe 应用程序时,它显示一个错误“前缀创建退出错误”

有错误日志:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro15,2
      Processor Name: Intel Core i5
      Processor Speed: 2.3 GHz
      Number of Processors: 1
      Total Number of Cores: 4
      L2 Cache (per Core): 256 KB
      L3 Cache: 6 MB
      Hyper-Threading Technology: Enabled
      Memory: 8 GB
      Boot ROM Version: 1037.0.52.0.0 (iBridge: 17.16.10531.5.4,0)
      Activation Lock Status: Enabled
 ###BOTTLING### Create .app...
 ###BOTTLING### Enabling CoreAudio, Colors, Antialiasing  and flat 
 menus...
 /Applications/WineBottler.app/Contents/Frameworks/WBottler.framework/Resources/bottler.sh: line 143: 
 /Applications/Wine.app/Contents/Resources/bin/wine: Bad CPU type in executable
 ### LOG ### Command '/Applications/Wine.app/Contents/Resources/bin/wine regedit /tmp/reg.reg' returned status 126.



 ###ERROR### Command '/Applications/Wine.app/Contents/Resources/bin/wine regedit /tmp/reg.reg' returned status 126.
Task returned with status 1.
Run Code Online (Sandbox Code Playgroud)

Teo*_*dor 4

编辑(27.10.19):它也适用于 Mojave,但仍然会出现一些错误。如果您降级到 High Sierra,它将完美运行。只要确保您下载了 Wine 的最新稳定版本 (4.0.2) 并安装了 winetricks。

我猜您正在使用最新的操作系统版本(Catalina)。据我目前所知,Catalina 的 Mac 上不再支持 32 位程序,而 atm 对此问题没有可行的解决方案。RN,我也面临着同样的问题。尽管如此,我还是找到了某种解决方法。通过brew安装wine,使用您尝试安装的64位版本的.exe,然后运行以下命令:

wine64 <your_program.exe>
Run Code Online (Sandbox Code Playgroud)

如果仍然不起作用,请尝试降级到 Mojave,因为它是支持 32 位应用程序的最后一个操作系统版本。(这就是我接下来几天要做的事情,我会回来更新)

希望能帮助到你 !