user2002522
user2002522

Reputation: 313

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

Upvotes: 5

Views: 3873

Answers (2)

user2002522
user2002522

Reputation: 313

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

Upvotes: 2

spirinvladimir
spirinvladimir

Reputation: 688

Try this before execute curl:

   echo ipv4 >> ~/.curlrc

Upvotes: 9

Related Questions