brew改源無效問題之一


今天需要使用kafka,遂用公司電腦mac通過brew安裝。

源已經換了,國內最常用的源中科大和清華:

https://lug.ustc.edu.cn/wiki/mirrors/help/brew.git

https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/

 

開始安裝

brew install kafka

下載不到100%,就會因網絡錯誤:

jiuqudembp:homebrew-core coffee$ brew install ruby
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Already downloaded: /Users/coffee/Library/Caches/Homebrew/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Error: Checksum mismatch.
Expected: 34ce9e4c9c1be28db564d744165aa29291426f8a3d2ef806ba4f0b9175aedb2b
Actual: aad33f35a567fd7550c4811c2966256115e713e76e34cb6588d6d63a32c1e9de
Archive: /Users/coffee/Library/Caches/Homebrew/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
To retry an incomplete download, remove the file above.
Error: Failed to install vendor Ruby.

 

其實我本以為換了源,應該很快。但因為brewhome是基於ruby解析你的下載安裝腳本,如果你ruby版本不對還是會國外源去下載,這時我怎么也通過不了。

但其實解決也很簡單,找個迅雷或者斷點續傳的下載器,把這個ruby包下載下來,放在目標位置。就可以繼續你原來的安裝了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM