Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 764
Yosuva Arulanthu Avatar asked Apr 28 '15 04:04

Yosuva Arulanthu


4 Answers

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.

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)

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

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
like image 79
Gal Avatar answered Oct 06 '22 09:10

Gal


It was a company proxy problem for me and the solution as mentioned here worked for me.

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

git config --global https.proxy $HTTPS_PROXY

git config --global --get https.proxy

like image 32
Chenna V Avatar answered Oct 06 '22 08:10

Chenna V


The accepted Answer is outdated now. But based on the answer I solved the problem by:

  1. open the home page of brew https://brew.sh/
  2. copy the URL from the install cmd and open it on your browser https://raw.githubusercontent.com/Homebrew/install/master/install.sh
  3. right-click and save it to your computer
  4. open a terminal and run it with: /bin/bash path-to/install.sh
like image 28
Ferenc Yim Avatar answered Oct 06 '22 09:10

Ferenc Yim


I had the same error,

- Disabled VPN

tried again installing without VPN It worked for me.

like image 24
Bekzat Avatar answered Oct 06 '22 10:10

Bekzat