且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Mac OS X 上的 Homebrew 安装无法连接到 raw.githubusercontent.com 端口 443

更新时间:2022-02-26 08:53:29

对我有用.除非它是 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.

你能通过浏览器访问相同的 URL 吗?

Can you get to the same URL via a browser?

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