curl: (7) Failed to connect to r
2021-12-20 本文已影响0人
神佑沽单
原因:安装失败的可能原因是没有初始化Xcode的环境这个是针对Mac电脑,我在网上找了很多资料,有说打开这个网址https://raw.githubusercontent.com/Homebrew/install/master/install,我打不开
所以下面是我的解决办法:
(1)打开网站: [查询地址]https://www.ipaddress.com/ 查询一下 raw.githubusercontent.com对应的IP 地址

(2)替换系统的host文件 (注意:最好复制一份出来在更改)
前往文件夹 /etc

打开hosts文件(复制出来修改后,替换文件)

报错:
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
添加: hosts 修改地址 github.com 和 github.global.ssl.fastly.net
#github
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net

Homebrew安装失败
https://www.jianshu.com/p/a9f6d1a3e95a