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?
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.
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.
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
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With