Error installing homebrew on mac (curl: (6) Could not resolve host: raw.githubusercontent.com)

前端 未结 6 1735
生来不讨喜
生来不讨喜 2021-02-07 21:20

I am trying to following instructions on homebrew homepage but the following

ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/ins         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 21:58

    You are most probably behind a proxy. Consider running curl command with -k parameter:

    -k, --insecure (SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. This makes all connections considered "insecure" fail unless -k, --insecure is used.

    See this online resource for further details: http://curl.haxx.se/docs/sslcerts.html

    Check also Homebrew docs where they talk about this.

提交回复
热议问题