“gem install rails” fails with DNS error

后端 未结 14 736
我在风中等你
我在风中等你 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: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!!!

提交回复
热议问题