以下是相关信息:
- 我没有机器管理员权限。
- 我正在运行 macOS Catalina 10.15.5。
- 我使用的是 zshell。
- 我安装了 Xcode 命令行工具 11.5,但未安装 XCode 本身。
- 我正在运行 Ruby v2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]。
在 Homebrew 页面运行安装命令时,我遇到了以下错误:
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
################################################ 24.1%
curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
Error: Checksum mismatch.
Expected: b065e5e3783954f3e65d8d3a6377ca51649bfcfa21b356b0dd70490f74c6bd86
Actual: be732ceabd97bbe69929621075c00c2e1709e30b8ab9a9ba3b7064a14ad6bbff
Archive: /Users/e113991/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
Error: Failed to install Homebrew Portable Ruby (and your system version is too old)!
Failed during: /usr/local/bin/brew update --force --quiet
brew doctor
运行时提醒我:
Error: Failed to install Homebrew Portable Ruby (and your system version is too old)!
注意它正在安装 Yosemite,而不是 Catalina。为什么?我尝试使用 git clone
将其复制到我的 usr/local 目录,但我没有写入权限。我尝试了 Stack Overflow 上的每个其他解决方案都无效。
xcode-select -v
。 - pjs