0

在 Windows 8 上安装 ruby​​ 后出现以下错误,我已经卸载了几次,触发了 gem cleanup 等命令,删除了 .gem 文件夹,ruby 文件夹,环境变量,但似乎没有任何效果。

这是我遇到的错误的日志

ruby 1.9.3p385 (2013-02-06) [i386-mingw32]

C:\Users\david>gem update
Updating installed gems
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: No such host is known.  (http://rubygems.org/lates
t_specs.4.8.gz)

C:\Users\david>gem install compass
ERROR:  Could not find a valid gem 'compass' (>= 0) in any repository
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: No such host is known.  (http://rubygems.org/lates
t_specs.4.8.gz)

C:\Users\david>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.24
  - RUBY VERSION: 1.9.3 (2013-02-06 patchlevel 385) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby193/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: C:/Ruby193/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby193/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/Ruby193/lib/ruby/gems/1.9.1
     - C:/Users/david/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

C:\Users\david>gem -v
1.8.24

C:\Users\david>ruby -v
ruby 1.9.3p385 (2013-02-06) [i386-mingw32]

C:\Users\david>
4

0 回答 0