Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while installing RVM using Curl in Ubuntu 14.04

I was trying to install RVM using Curl in Ubuntu 14.04.

I ran the following command:

\curl -sSL https://get.rvm.io | bash -s stable

And got the following error:

curl: (7) Failed to connect to get.rvm.io port 80: Network is unreachable

Any help to resolve this issue is highly appreciable. Thanks

like image 245
user2002522 Avatar asked Jun 02 '14 18:06

user2002522


2 Answers

Try this before execute curl:

   echo ipv4 >> ~/.curlrc
like image 132
spirinvladimir Avatar answered Sep 23 '22 23:09

spirinvladimir


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"

Refere to this link https://www.digitalocean.com/community/questions/how-to-install-ruby-on-rails

like image 40
user2002522 Avatar answered Sep 20 '22 23:09

user2002522