homebrew 安装踩坑解决过程

一、坑一:mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法git

安装brew执行:github

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

报错以下:curl

Failed to connect to raw.githubusercontent.com port 443: Connection refusedide

主要仍是墙的问题,解决方案:
在hosts中加入代理hostsurl

200.199.232.28.133 raw.githubusercontent.com代理

二、坑二
安装中继续报错code

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 --forcehomebrew

这个时候咱们换个源,执行:get

git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

没有装载的部分会安装好

相关文章
相关标签/搜索