[英]Homebrew install fails with Error: Failed to install Homebrew Portable Ruby
一些信息:
在自制頁面上運行安裝命令時,出現以下錯誤:
==> 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)!
請注意,它正在安裝優勝美地,而不是 catalina。 為什么? 我嘗試將 git 克隆到我的 usr/local 目錄,但我沒有寫入權限。 我已經在stackoverflow上嘗試了所有其他解決方案,但沒有avial。
嘗試在我的 Macbook(Mojave 10.14.6 XCode 11.3 CLT 11.3)上安裝時遇到了同樣的問題。 對我來說,事實證明,后台的防火牆在沒有通知的情況下阻止了對 brew 的互聯網訪問。 因此,只需添加一條規則就可以了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.