命令行执行
/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 error: Error: 7,
解决办法:
重装command line tools,再执行安装指令,homebrew安装成功。
具体步骤:
1、removing the old tools
$ sudo rm -rf /Library/Developer/CommandLineTools
2、install xcode command line tools again
$ sudo xcode-select --install
3、重新安装
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
网友评论