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.github
These steps solved the problem:
xcode-select --install
Execute this command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
and it should work.
I had the same error,
- Disabled VPN
tried again installing without VPN It worked for me.
I solved this problem by the following steps:
$ rm -rf /Library/Developer/CommandLineTools
)$ xcode-select --install
).The method of using ruby is probably outdated, as shown below:
As a better alternative, please set your computer's DNS server to 8.8.8.8
~ % cd /ect/
~ % vim host
199.232.68.133 raw.githubusercontent.com
The accepted Answer is outdated now. But based on the answer I solved the problem by: