brew 安装记录

homebrew是Mac上常用的软件包管理工具,通过官网上的指导使用以下命令安装:

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

结果是失败,

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

最终在知乎上找到一个镜像网站https://www.jsdelivr.com/,安装改为以下

ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

进度条就开始蹭蹭动了,后面在执行Tapping homebrew时卡住了:

==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...

中止Tapping后,进入上述homebrew目录手动执行git clone

cd /usr/local/Homebrew/Library/Taps/
mkdir homebrew  ##if homebrew doesn't exist
git clone git://mirrors.ustc.edu.cn/homebrew-core.git

git clone成功后重新执行上一条安装命令。

原文链接:https://zhuanlan.zhihu.com/p/90508170

猜你喜欢

转载自blog.csdn.net/kevin_zhangsen/article/details/108435286