Could not resolve host when trying to install RVM

Viewed 8727

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.

2 Answers
Related