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

前端 未结 12 723
被撕碎了的回忆
被撕碎了的回忆 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:14

    There are several situations here, you can do following things :

    1. reinstall the xcode command line tool by removing the old tools ($ rm -rf /Library/Developer/CommandLineTools) and xcode-select --install
    2. request web page https://raw.githubusercontent.com/Homebrew/install/master/install then save it's content to shell file then run it.
    3. change your DNS server to 8.8.8.8 (This is worked for me : ] )

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

提交回复
热议问题