“gem install rails” fails with DNS error

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

    I had the same issue with Comcast xFinity and Compass.

    Update for Windows 7 users:

    Go to Control Panel > Network and Sharing Center
    Under "Active Networks" select "Connections: Local Area Connections"
    In the "Local Area Connection Status" dialogue box, click on "Properties"
    Double click the IPv4 item
    In the "Internet Proptocol Verion 4" icon or click the "Properties" button, then click "Advanced"
    In the DNS tab, just above the 2nd input box, click the "Append These DNS suffixes (in order)" radio button,
        then click "Add", enter "home.lan", then click OK until the dialogue closes.
    
        Many thanks to John Smith for the Vista fix and Somnambulent for Win 8.1 fix.
    

提交回复
热议问题