欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

brew改源无效问题之一

发布时间:2025/3/21 编程问答 54 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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改源无效问题之一的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。