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

前端 未结 12 562
被撕碎了的回忆
被撕碎了的回忆 2021-02-01 22:48

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         


        
相关标签:
12条回答
  • 2021-02-01 23:17

    These steps solved the problem:

    1. xcode-select --install
    2. restart the Mac
    3. Execute this command:

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

    and it should work.

    0 讨论(0)
  • 2021-02-01 23:17

    I had the same error,

    - Disabled VPN

    tried again installing without VPN It worked for me.

    0 讨论(0)
  • 2021-02-01 23:19

    I solved this problem by the following steps:

    1. removing the old tools ($ rm -rf /Library/Developer/CommandLineTools)
    2. install xcode command line tools again ($ xcode-select --install).
    0 讨论(0)
  • 2021-02-01 23:20

    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

    0 讨论(0)
  • 2021-02-01 23:25
    ~ % cd /ect/
    ~ % vim host
    199.232.68.133 raw.githubusercontent.com
    
    0 讨论(0)
  • 2021-02-01 23:29

    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
    0 讨论(0)
提交回复
热议问题