Installing Homebrew on Mac OS X Failed to connect to raw.githubusercontent.com 443

When I try to install Homebrew, I get the following failure error message. Please help me 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
+6
source share
5 answers

It works for me. If this is not a problem with github, that may be, but I'm going to guess that it is not, probably a problem with your connection.

Can you get the same url through browser?

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

If you have a mistake, you know what the problem is. (Talk to your network administrator)

... , "curl" , , curl ?

, , (brew_install.rb),

ruby brew_install.rb
+16

, , , .

export HTTPS_PROXY=https://<proxy.mycompany>:<port>

git config --global https.proxy $HTTPS_PROXY

git config --global --get https.proxy

+7

, , xcode, .. xcode-select --install

+1

:

  1. xcode-select --install
  2. Mac
  3. :

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

.

+1

, https

env | grep -I proxy

, , env

HTTPS_PROXY

0

Source: https://habr.com/ru/post/1585019/


All Articles