brew改源无效问题之一
生活随笔
收集整理的這篇文章主要介紹了
brew改源无效问题之一
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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包下載下來,放在目標位置。就可以繼續你原來的安裝了。
posted on 2018-01-04 22:27 olenji 閱讀(...) 評論(...) 編輯 收藏轉載于:https://www.cnblogs.com/olenji/p/8196358.html
總結
以上是生活随笔為你收集整理的brew改源无效问题之一的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 老王Python-进阶篇4-面向对象第三
- 下一篇: VIM 基本操作续