在Mac上安装自制软件时出错(卷曲:(6)无法解析主机:raw.githubusercontent.com) [英] Error installing homebrew on mac (curl: (6) Could not resolve host: raw.githubusercontent.com)

查看:104
本文介绍了在Mac上安装自制软件时出错(卷曲:(6)无法解析主机:raw.githubusercontent.com)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循自制网站上的说明,但以下内容

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

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

返回以下错误:

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

有什么建议吗?

推荐答案

如果您碰巧是代理服务器的代理,则可能需要出路才能退出

If you happen to be behind a proxy, You might need a way out, to exit

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

对于其他一些用户,有时也可以将其github https和https-proxy设置为默认设置.

For some other users, setting back their github https and https-proxy to default works sometimes as well.

git config --global --unset http.proxy
git config --global --unset https.proxy

这篇关于在Mac上安装自制软件时出错(卷曲:(6)无法解析主机:raw.githubusercontent.com)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆