How to install Ruby on rails?

January 26, 2013 8.4k views
Hi, I check all articles about how to install ROR on ubuntu/CentOS but it will gives same error while installing. http://img541.imageshack.us/img541/1496/46e924fac34f47048143803.png [While installing RVM] Error - 2534 curl: (7) couldn't connect to host I followed this article https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-centos-6-with-rvm and i also tried on Ubuntu but i got same error. any solution? please help! Thank you - Jack
6 Answers
curl is used to download files via HTTP much like wget and it means that a connection to the remote site is failing which is why it is unable to download.

Saw this on another forum, give it a shot and see if it works for you:
"replace the "get.rvm.io" part with raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer -it's the same script, just takes out some potential DNS problems on rvm's end"
Hey raiyu Thanks for the reply! =]
I tried this on ubuntu and also on CentOS raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer instead of get.rvm.io but still same error =[

Can you explain more?
Will you try for me?

Many thanks!!!

~ Jack
Rails ready is a great alternative to get up and running and it seems there's an issue with the original URL in the our article.

We've had a number of customers complain but you can pull the URL via Curl locally and then just copy and paste it into a bash script and execute it.

Or as Josh suggested check out railsready that does all of the heavy lifting for you.
Thanks for the reply for @joshfng but still it's not working for me...
Same error :- curl: (7) couldn't connect to host

@raiyu Can you explain more?

Thanks a lot for the reply =]
That's very odd I setup a new CentOS install followed the instructions up to that point and didn't run into any issues.

Can you open up your console (Virtual Server -> Access -> Console) and login as your root user. Then open up a ticket with us so we can console in and take a look at the system as we'll have to troubleshoot it locally because I can't duplicate your error.

Have another answer? Share your knowledge.