简体   繁体   中英

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

在执行curl之前尝试这个:

   echo ipv4 >> ~/.curlrc

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM