1、坑一:mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法
安装brew执行:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
报错如下:
Failed to connect to raw.githubusercontent.com port 443: Connection refused
主要还是墙的问题,解决方案:
在hosts中加入代理hosts
200.199.232.28.133 raw.githubusercontent.com
2、坑二
安装中继续报错
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing;git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
exited with 128.
Error: Failure while executing;/usr/local/bin/brew tap homebrew/core
exited with 1.
Failed during: /usr/local/bin/brew update --force
这个时候我们换个源,执行:
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
没有装载的部分会安装好
来源:oschina
链接:https://my.oschina.net/u/4345075/blog/4316861