【问题标题】:I don't know how to fix this error when installing homebrew and mingw安装 homebrew 和 mingw 时不知道如何解决这个错误
【发布时间】:2022-06-12 16:37:07
【问题描述】:

我试图用自制软件安装 mingw-w64 以在我的 Macbook(英特尔芯片)上使用 C++。 我按照我在 youtube 上找到的教程进行操作:https://www.youtube.com/watch?v=KhGnYWplLVo&t=310s 一切都很顺利,直到终端不会显示任何有关安装的信息。当我安装自制软件时,正是在这个特定的时刻:

==> Tapping homebrew/core
remote: Enumerating objects: 1148169, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 1148169 (delta 2), reused 3 (delta 0), pack-reused 1148162
Receiving objects: 100% (1148169/1148169), 455.12 MiB | 5.71 MiB/s, done.
Resolving deltas: 100% (793326/793326), done.

我尝试输入一些内容,但它似乎没有响应。所以我按了Control+C,它又正常工作了。 我不确定安装是否成功(后来我发现安装完成后会出现这一行:==> Installation successful!) 然后我使用此命令brew install MinGW-w64 安装 MinGW 并收到此错误

Tapped 3967 casks (4,038 files, 309.3MB).
Warning: No available formula with the name "mingw-w64".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

我尝试卸载自制软件,然后再次安装,但没有任何效果。 我还使用了brew configbrew doctor,这些是输入

Macs-MacBook-Air:~ mac$ brew config
HOMEBREW_VERSION: 3.3.16-55-g377ac64
ORIGIN: https://github.com/Homebrew/brew
HEAD: 377ac6475c8785dc80d50df3c6b173065d32183d
Last commit: 13 hours ago
Core tap ORIGIN: https://github.com/Homebrew/brew
Core tap HEAD: 377ac6475c8785dc80d50df3c6b173065d32183d
Core tap last commit: 13 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.8 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/bin/ruby
CPU: quad-core 64-bit broadwell
Clang: 10.0.1 build 1001
Git: 2.20.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.14.6-x86_64
CLT: 10.3.0.0.1.1562985497
Xcode: N/A
Macs-MacBook-Air:~ mac$ brew doctor
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: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 11.3.1.


Warning: Homebrew/homebrew-core was not tapped properly! Run:
  rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
  brew tap homebrew/core

Warning: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

【问题讨论】:

  • “使用自制软件安装 mingw-w64 以在我的 Macbook 上使用 C++” - 为什么?安装 XCode 及其命令行工具。
  • 附带说明,绝大多数 youtube 教程都不值得您为它们支付的费用。
  • 您可以在 macOS 上编译和运行 C++ 程序,而无需任何这种奇怪的过程。安装 Xcode 及其命令行工具。然后使用clang++进行编译。

标签: c++ macos homebrew mingw-w64


猜你喜欢
  • 2020-08-19
  • 2015-01-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-09-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多