Question

How to install Ruby on rails?

  • Posted January 26, 2013

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
Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

That’s very odd I setup a new CentOS install followed the instructions up to that point and didn’t run into any issues. <br> <br>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. <br> <br>Thanks

Thanks for the reply for @joshfng but still it’s not working for me… <br>Same error :- curl: (7) couldn’t connect to host <br> <br>@raiyu Can you explain more? <br> <br>Thanks a lot for the reply =]

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. <br> <br>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. <br> <br>Or as Josh suggested check out railsready that does all of the heavy lifting for you.

Hey raiyu Thanks for the reply! =] <br>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 =[
<br> <br>Can you explain more? <br>Will you try for me? <br> <br>Many thanks!!! <br> <br>~ Jack

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. <br> <br>Saw this on another forum, give it a shot and see if it works for you: <br>“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”