Homebrew安装失败,并显示错误:无法安装Homebrew Portable Ruby

问题描述:

一些信息:

  • 我没有计算机的管理员权限
  • 运行Mac Catalina 10.15.5
  • 我使用zshell
  • 我有Xcode命令行工具11.5,但没有XCode本身
  • Ruby -v = ruby​​ 2.6.3p62(2019-04-16修订版67580)[universal.x86_64-darwin19]

在自制程序页面上运行安装命令时,出现以下错误:

When running the install command on the homebrew page I get the following error:

==> 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

正在运行啤酒医生只是提醒我:错误:无法安装Homebrew Portable Ruby(并且您的系统版本太旧)!

Running brew doctor just reminds me that: Error: Failed to install Homebrew Portable Ruby (and your system version is too old)!

请注意,它正在安装优胜美地,而不是Catalina.为什么?我试图将它克隆到我的usr/local目录中,但是我没有写权限.我已经尝试过其他所有关于*的解决方案.

Notice it is installing yosemite, not catalina. Why? I tried to git clone it to my usr/local directory but I don't have write privileges to that. I've tried every other solution on * to no avial.

尝试在Macbook上安装Mojave 10.14.6 XCode 11.3 CLT 11.3时,我遇到了同样的问题.对我来说,事实证明,后台的防火墙阻止了Internet的访问,而没有发出通知.因此,只需添加一条规则就可以解决问题.

I ran into the same problem when trying to install on my Macbook (Mojave 10.14.6 XCode 11.3 CLT 11.3). For me it turned out that access to the internet for brew was blocked without notice by a firewall in the background. So simply adding a rule did the trick.