赞
踩
首先终端输入ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
之后便开始了慢慢报错之路~
第一个问题
Archive: /Users/apple/Library/Caches/Homebrew/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz To retry an incomplete download, remove the file above.
解决:把文件目录下的portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz删除就好了
sudo rm -r -f
第二个问题
Failed to connect to raw.githubusercontent.com port 443: Connection refused error: Error: 7
解决办法:通过修改hosts解决此问题。
查询真实IP
在https://www.ipaddress.com/查询raw.githubusercontent.com的真实IP
修改hosts
sudo vim /etc/hosts
添加如下内容:
199.232.28.133 raw.githubusercontent.com
第三个问题
(35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
解决办法:使用国内源
/bin/zsh -c “$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)”
最后brew -v查看版本
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。