简体   繁体   中英

can't install Rails on RVM, OS Linux Mint 17

I installed RVM. And then followed this guide to install Ruby 2.1.3 version d and create GEMSET. after that I tried to install Rails 4 by executing this command:

gem install rails -v 4.0 but got this error:

 ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
        Errno::ECONNREFUSED: Connection refused - connect(2) for "your-dns-needs-immediate-attention.hi.link" port 443 (https://your-dns-needs-immediate-attention.hi.link/quick/Marshal.4.8/thread_safe-0.3.4.gemspec.rz)

I researched multiple similair questions but non of them could solve my issue.

First, I'd like to second the use of rbenv over rvm. Rbenv is super simple and I have never had problems with it which I cannot say about rvm. However, this looks like a dns resolution issue. In resolv.conf try setting your dns servers to googles. If that fixes it then follow this to make the changes permanent. https://askubuntu.com/questions/157154/how-do-i-include-lines-in-resolv-conf-that-wont-get-lost-on-reboot

EDIT well since that didn't work I found this link https://github.com/rubygems/rubygems/issues/1001 , are you by any chance a comcast customer? If so, this link should help, aparently comcast recently appended some wierd domain for all search path, which would explain why youre getting this issue. I hope this helps.

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