Mac安装brew

Posted on 2020-11-09 11:12  南哥的随笔与涂鸦  阅读(111)  评论(0)    收藏  举报

前提需要已经安装ruby

原理:https://zhuanlan.zhihu.com/p/129058312

 

1.代理:

export https_proxy=http://10.0.5.24:7890 http_proxy=http://10.0.5.24:7890 all_proxy=socks5://10.0.5.24:7891(演示例,私人公司内部用)
 
2.
报错 ::如果你等待一段时间之后遇到下面提示,就说明无法访问官方脚本地址: curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
 
请使用下面的脚本: /usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)" 上面脚本中使用了中科大镜像来加速访问。
 
3.卡在donwloading 或者 /usr/bin/sudo. -->等待
  卡在 Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'的话-->
   https://zhuanlan.zhihu.com/p/172463700
 
更新 brew -v