Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not resolve host when trying to install RVM

Tags:

macos

ruby

rvm

I'm trying to install RVM on my environment following the instructions on RVM page

curl -L https://get.rvm.io | bash -s stable --ruby

but I always get this:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    198      0 --:--:-- --:--:-- --:--:--   246
100  9979  100  9979    0     0   3821      0  0:00:02  0:00:02 --:--:-- 14740
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
curl: (6) Could not resolve host: github.com; nodename nor servname provided, or not known

I've got the same error when trying to install gems before trying RVM. Some people say it's a network problem, but I can't figure out what it is. I'm new to ruby and trying to setup my environment to work with rails.

I've tried to ping github.com and most packets went fine with less than 10% loss.

So is this really a problem with my network? If so, how can I fix this?

I'm running Mac OS X 10.8.

Update:

Definitely, it's some problem in my network configuration on Mac OS X. I can't run commands on git or svn. I always get the 'could not resolve hostname' error. Need some investigation on that. Have someone ever had the same problem? So I could try to change something on my network configuration.

like image 276
Jobert Avatar asked Aug 13 '12 15:08

Jobert


2 Answers

It looks like a DNS or proxy problem. From your comments, you are not using proxy. Change your DNS servers to Google DNS and try again.

That problem is not related to git or svn, so you won't find info about DNS on their sites. It's due to network config, network availability or internet provider (likely the former).

like image 165
Sony Santos Avatar answered Oct 22 '22 09:10

Sony Santos


Try running as sudo; worked for me! I know its not ideal, but proves that it may be a permissions problem.

like image 21
Julian Veling Avatar answered Oct 22 '22 10:10

Julian Veling