在Mac OS X上进行Homebrew安装无法连接到raw.githubusercontent.com端口443 [英] Homebrew installation on Mac OS X Failed to connect to raw.githubusercontent.com port 443

查看:95
本文介绍了在Mac OS X上进行Homebrew安装无法连接到raw.githubusercontent.com端口443的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装Homebrew时,出现以下拒绝连接错误。请帮助我解决这个问题。

When I try to install Homebrew, I am getting following connection refused error. Please help me to solve this problem.

$ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused


推荐答案

为我工作。除非它是github的一个实际问题,可能是这样,但我想可能不是,这可能与您的连接有关。

Works for me. Unless its a real problem with github, which it may be but I'm going to guess that its not, its probably a problem with your connection.

https://raw.githubusercontent.com/Homebrew/install/master/install

如果那里也出现错误,您就知道问题所在是。 (与您的网络管理员交谈)

If you get an error there too, you know what your problem is. (Talk to your network admin)

如果可行,请尝试在终端中仅执行 curl命令,看看curl是否给出了更具体的错误?

If that works...maybe try doing just the "curl" command in your terminal to see if curl gives a more specific error?

此外,如果可行,将文件保存到计算机上的文件(brew_install.rb),然后通过

Also, if that does work, save that file to a file on your computer (brew_install.rb) and then run it via

ruby brew_install.rb

这篇关于在Mac OS X上进行Homebrew安装无法连接到raw.githubusercontent.com端口443的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆