Mac下安装homebrew 报错:RPC failed; cu

2019-04-11  本文已影响0人  独家记忆3997

1.将brew的install文件下载本地

curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install

2.修改install文件的镜像源

(我没有用vim,是进入访达用command+shift+G找到brew_install文件进行修改)

BREW_REPO="https://github.com/Homebrew/brew".freeze

改为

BREW_REPO="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git".freeze

BREW_REPO下添加

CORE_TAP_REPO="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git".freeze

3.开始安装

/usr/bin/ruby brew_install

上一篇 下一篇

猜你喜欢

热点阅读