2015-01-04 50 views
6

私は自作のホームページで、次の手順にしようとしたが、次のエラー(:(6)ホストを解決できませんでした:カールraw.githubusercontent.com)

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

ていますが、次のエラーを返します。

curl: (6) Could not resolve host: raw.githubusercontent.com 

+2

おそらくあなたの最後にネットワークの問題があります。 'curl -fsSL https:// raw.githubusercontent.com/Homebrew/install/master/install'はうまく動作します。 –

答えて

0

あなたはおそらくプロキシの背後にあります。 -kパラメーターを指定してcurlコマンドを実行している考えてみましょう:彼らはこのことについて話を

-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

もチェックHomebrew docs。あなたがプロキシの背後にあることが起こる場合

3

することは、あなたにも、時々作品をデフォルトに彼らのgithubのHTTPSおよびHTTPSプロキシをバック設定、いくつかの他のユーザーのために

export http_proxy=http://YOURPROXY:PORT export ALL_PROXY=$http_proxy 

を終了するには、アウトの方法が必要になる場合があります。

git config --global --unset http.proxy 
git config --global --unset https.proxy 
関連する問題