【问题标题】:MacOS home-brew failed on Big Sur Beta VM on VirtualBoxMacOS 自制软件在 VirtualBox 上的 Big Sur Beta VM 上失败
【发布时间】:2021-08-09 02:27:38
【问题描述】:

我是 MacOs 开发的新手。我在 Virtualbox 上安装了 MACOS Big Sur beta,安装了 Xcode。当我安装 Homebrew 并运行 brew doctor 时。我遇到版本无效错误。我根据这里的其他帖子尝试了很多东西。没修好。

    xxxxxxxxxxxxxxx-iMac ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
==> Checking for `sudo` access (which may request your password).
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/sbin/chown -R xxxxxxxxxxx:admin /usr/local/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 44, done.
remote: Counting objects: 100% (42/42), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 44 (delta 23), reused 40 (delta 22), pack-reused 2
Unpacking objects: 100% (44/44), done.
From https://github.com/Homebrew/brew
   6bb369916..5ea678bbc  master      -> origin/master
 * [new branch]          spdx-update -> origin/spdx-update
Updating files: 100% (2680/2680), done.
HEAD is now at 5ea678bbc Merge pull request #11824 from cnnrmnn/latest-head-kegs
Updated 1 tap (homebrew/core).
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh
xxxxxxxxxxxxx-iMac ~ % brew doctor
Error: macOS '10.16' is invalid
xxxxxxxxxxxxx-iMac ~ % 

错误是10.16无效 我的 MACOS 是 Big Sur 11.0 Beta (20A4300b)。解决此问题的任何提示?如果不通过此操作,我将无法继续进行其他 brew 安装。谢谢。

【问题讨论】:

标签: macos homebrew macos-big-sur brew-doctor


【解决方案1】:

我尝试了几件事,问题解决了:

  1. 去 Apple 开发者那里下载 Xcode 的命令行工具。请匹配您的 Xcode 的版本。完成后安装。

  2. 然后在终端中,运行这几个命令行:

  • brew install --build-from-source gettext
  • brew install --build-from-source pcre2
  • brew install --build-from-source git

注意:运行这些需要一段时间,不要关闭。

运行 brew doctor 后,MacOS 10.14 无效的错误消失了。 “您的系统已准备就绪。”

【讨论】:

  • 当我尝试:sudo xcode-select --install 时,“查找软件”窗口进度条超过 30 分钟没有移动。诀窍是去苹果开发者页面手动下载Xcode的命令行工具。
猜你喜欢
  • 2021-02-25
  • 2021-03-31
  • 1970-01-01
  • 2021-09-22
  • 1970-01-01
  • 2021-02-14
  • 2021-01-12
  • 2021-01-20
  • 1970-01-01
相关资源
最近更新 更多