Mac安装homebrew

1、正常情况下在终端执行指令:

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

2、但是等待一段时间出现如下提示,说明无法访问官方脚本

zcurl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out

3、那么可以运行一下指令,使用中科大镜像加速访问:

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

4、如果卡在下面信息或者安装失败:

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

5、依次执行下面指令

cd "$(brew --repo)/Library/Taps/"
mkdir homebrew && cd homebrew
git clone git://mirrors.ustc.edu.cn/homebrew-core.git

6、然后再次执行指令:

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

7、当看到==> Installation successful!说明安装成功!记得给小心心!

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