2015-01-04 48 views
6

Tôi cố gắng để hướng dẫn trên trang chủ homebrew sau nhưng sauLỗi khi cài đặt homebrew trên mac (curl: (6) có thể không giải quyết được host: raw.githubusercontent.com)

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

trả về lỗi sau:

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

Mọi đề xuất?

+2

Có thể là sự cố mạng về phía bạn. 'curl -fsSL https: // raw.githubusercontent.com/Homebrew/install/master/install' hoạt động tốt cho tôi. –

Trả lời

0

Bạn có thể đứng sau proxy nhất. Xem xét chạy lệnh curl với thông số -k:

-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

Kiểm tra cũng Homebrew docs nơi chúng nói về điều này.

3

Nếu bạn tình cờ được đằng sau một proxy, Bạn có thể cần một lối thoát, để thoát

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

Đối với một số người dùng khác, thiết lập lại github https và https-proxy để mặc định tác phẩm đôi khi cũng của họ.

git config --global --unset http.proxy 
git config --global --unset https.proxy 
Các vấn đề liên quan