Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

homebrew

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

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

returns the following error:

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

Any suggestions?

like image 216
user3738838 Avatar asked Jan 04 '15 02:01

user3738838


People also ask

Why does curl (6) could not resolve host error in Linux?

The curl: (6) could not resolve host error in Linux primarily relates to wrongful/missing DNS nameserver setup or a random syntax error that can be scanned and fixed.

How to fix “could not resolve host” error?

The “ curl: (6) Could not resolve host ” error occurs when the curl command is used with incorrect syntax or the DNS nameserver is missing. To fix it, you need to verify and check the syntax of the command or add a nameserver for the URL into your /etc/resolv.conf file.

What are the most common Curl errors in Linux?

This error is likely to take several forms when the curl command is executed from the Linux terminal and the most popular ones include: curl: (6) could not resolve host: domain_name.extension; Name or service not known

Does homebrew-it need to be installed with a script?

Note that you don't need to use our script to install Homebrew-It will do things like setup the Cache permissions and such for you, but you can use any of these methods as well.


1 Answers

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

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
like image 170
misterzik Avatar answered Sep 16 '22 12:09

misterzik