How to install Ruby on rails?

Posted January 26, 2013 11.9k views
Hi, I check all articles about how to install ROR on ubuntu/CentOS but it will gives same error while installing. [While installing RVM] Error - 2534 curl: (7) couldn't connect to host I followed this article and i also tried on Ubuntu but i got same error. any solution? please help! Thank you - Jack

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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 "" part with -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 instead of 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.