“gem install rails” fails with DNS error

后端 未结 14 683
我在风中等你
我在风中等你 2020-12-01 07:59
$ rvm use
Using /home/owner/.rvm/gems/ruby-2.1.2
$ gem install rails
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ECONNREFUSED: Connec         


        
相关标签:
14条回答
  • 2020-12-01 08:53

    it appears comcast recently appended home.network to customers DNS search path

    I resolved this issue by completing the following steps on Windows Vista:

    control panel -> network and sharing center -> manage network connections -> wireless properties -> ip4 properties -> advanced -> dns tab -> select append these dns suffices in order and added home.lan.

    now gem install runs without a hitch

    0 讨论(0)
  • 2020-12-01 08:55

    I just want to say thank you to you all. Since I'm new here. I cannot add a comment even vote up. So I can only come to the answer part.

    I got a problem as follow when I tried to install cocoapods:

    ➜  ~  gem install cocoapods
    ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
        Errno::ETIMEDOUT: Operation timed out - connect(2) for "your-dns-needs-immediate-attention.network" port 443 (https://your-dns-needs-immediate-attention.network/quick/Marshal.4.8/cocoapods-0.33.1.gemspec.rz)`enter code here`
    

    Adding home.local into the DNS Search Domains fixes it.

    Thanks again! I admire your spirit!!!

    0 讨论(0)
提交回复
热议问题