brew 安装

换了新电脑要重装应用,发现以前做过的事情又忘记了,留下点记录。

网络要通 ,不通要设置代理。代理的设置方法在我的另一篇 

fatal: unable to access 'https://github.com/CocoaPods/Specs.git/' -

$ gem sources --remove https://rubygems.org/

$ gem sources -a http://ruby.taobao.org/

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew也需要设置代理:

ALL_PROXY=socks5://192.168.192.136:1080 brew install repo

参考 : Homebrew behind proxy ? · Issue #11114 · Homebrew/legacy-homebrew · GitHub


gist.github.com/JeOam/10785957127b21c54acc

你可能感兴趣的:(brew 安装)