在Mac OS Catalina上安装Wine.错误:没有名称为“葡萄酒"的可用公式. [英] Installing Wine on Mac OS Catalina. Error: No available formula with the name "wine"

查看:303
本文介绍了在Mac OS Catalina上安装Wine.错误:没有名称为“葡萄酒"的可用公式.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Brew在Mac上安装Wine.我正在使用Catalina,并且刚刚更新了brew,安装了XQuartz并安装了Xcode.当我键入命令"Brew install wine"时,它将返回以下内容:

I'm trying to install Wine on my Mac via Brew. I'm using Catalina and just updated brew, installed XQuartz and have Xcode installed. When I type the command "Brew install wine" it returns the following:

Error: No available formula with the name "wine" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

wine was deleted from homebrew/core in commit 82bd38bc:
  wine: delete

To show the formula before removal run:
  git -C "$(brew --repo homebrew/core)" show 82bd38bc^:Formula/wine.rb

If you still use this formula consider creating your own tap:
  https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap

我正在关注本教程: https://www.davidbaumgold.com/tutorials /wine-mac/

当我运行Brew医生时,我得到以下信息:

When I run Brew doctor I get the following:

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7-config
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m-config
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3-config

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libtcl8.6.dylib
  /usr/local/lib/libtk8.6.dylib

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/fakemysql.h
  /usr/local/include/fakepq.h
  /usr/local/include/fakesql.h
  /usr/local/include/itcl.h
  /usr/local/include/itcl2TclOO.h
  /usr/local/include/itclDecls.h
  /usr/local/include/itclInt.h
  /usr/local/include/itclIntDecls.h
  /usr/local/include/itclMigrate2TclCore.h
  /usr/local/include/itclTclIntStubsFcn.h
  /usr/local/include/mysqlStubs.h
  /usr/local/include/odbcStubs.h
  /usr/local/include/pqStubs.h
  /usr/local/include/tcl.h
  /usr/local/include/tclDecls.h
  /usr/local/include/tclOO.h
  /usr/local/include/tclOODecls.h
  /usr/local/include/tclPlatDecls.h
  /usr/local/include/tclThread.h
  /usr/local/include/tclTomMath.h
  /usr/local/include/tclTomMathDecls.h
  /usr/local/include/tdbc.h
  /usr/local/include/tdbcDecls.h
  /usr/local/include/tdbcInt.h
  /usr/local/include/tk.h
  /usr/local/include/tkDecls.h
  /usr/local/include/tkPlatDecls.h

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
  /usr/local/lib/pkgconfig/tcl.pc
  /usr/local/lib/pkgconfig/tk.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libtclstub8.6.a
  /usr/local/lib/libtkstub8.6.a

我不确定这些警告是否与之有关.

I'm not sure these warnings has something to do with it.

提前谢谢!

推荐答案

我能够从macOS Catalina上的源代码构建Wine 64位并成功在其上运行64位Notepad ++.

I was able to build Wine 64 bit from source on macOS Catalina and successfully run Notepad++ 64 bit on it.

我的步骤或多或少是这样的:

My steps were more or less something like that:

  1. https://dl下载Wine 4.20. winehq.org/wine/source/4.x/wine-4.20.tar.xz
  2. 提取
  3. 在终端中转到提取的目录
  4. 运行:./configure --enable-win64
  5. 它表明它找不到某些库(我不记得确切是什么),所以我用macports安装了它(./configure报告的sudo端口安装name_of_missing_package)
  6. 在我能够成功运行./configure --enable-win64之后,在终端运行中没有错误:make
  7. 超过30分钟后,它会进行编译.
  8. 我使用以下命令运行它:./wine start
  9. 它打开了Windows控制台,在这里我可以CD到Notepad ++ 64位目录(从
  1. Download Wine 4.20 from https://dl.winehq.org/wine/source/4.x/wine-4.20.tar.xz
  2. Extract it
  3. In terminal go to extracted directory
  4. Run: ./configure --enable-win64
  5. It showed that it cannot find some library (I do not remember what exactly) so I installed it with macports (sudo port install name_of_missing_package reported by ./configure)
  6. After I was able to run ./configure --enable-win64 succesfully without errors in terminal run: make
  7. It compiled after more than 30 minutes.
  8. I run it with: ./wine start
  9. It opened windows console and here I was able to cd to Notepad++ 64 bit directory (downloaded from https://notepad-plus-plus.org/repository/7.x/7.0/npp.7.bin.x64.zip note that newest version did not work and throwed some errors about some dll's)
  10. I typed notepad++ to run exe file
  11. It showed some errors about freetype fonts so I installed them with macports and I had to copy them from /opt/X11/lib to /usr/local/lib before wine detected them
  12. After fixing freetype fonts problem I was able to run notepad++
  13. Also you might want to run: sudo spctl --master-disable to disable gatekeeper if you will see some system alerts about loading app from unknown developer.
  14. Also note that instead of ./wine start you can run ./wine explorer for graphical file manager instead of console

这些步骤可能并不十分精确,因为我不确定我是否没有错过任何事情,但希望它能对某人有所帮助.

Those steps might not be exactly precise, as I'm not sure if I did not miss something but hope it will help someone.

还请注意,显然,macOS Catalina上的wine将只能运行某些64位Windows应用程序,而所有32位Windows应用程序将无法运行.我也使用IrfanView 64位( https://www.fosshub.com/IrfanView.html?dwl = iview453_x64_setup.exe ),它也可以正常工作.

Also note that obviously wine on macOS Catalina will be able to run only some 64 bit windows apps and all 32 bit windows app will not work. I also tested it with IrfanView 64 bit (https://www.fosshub.com/IrfanView.html?dwl=iview453_x64_setup.exe) and it also works fine.

如果您希望运行Wine来运行32位游戏,那么不幸的是,它不适用于wine,但您可以尝试使用virtualbox.您可以检查 https://www.youtube.com/watch?v=3AO8dF0vviQ 一些性能改进技巧.

In case you wanted to get wine working for purpose of running 32 bit games then unfortunately it will not work with wine but you can try with virtualbox. You can check https://www.youtube.com/watch?v=3AO8dF0vviQ for some performance improvements tips.

这篇关于在Mac OS Catalina上安装Wine.错误:没有名称为“葡萄酒"的可用公式.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆