C:\rubygems-1.3.7>gem install rails ruby-debug capistrano rspec ZenTest webrat image_scie
nce mini_magick mechanize RedCloth fastercsv piston sashimi ruport json newgem open4 rubi
gen --no-ri --no-rdoc
WARNING: RubyGems 1.2+ index not found for:
http://rubygems.org/
http://gems.rubyforge.org
http://gems.rubyforge.org
RubyGems will revert to legacy indexes degrading performance.
Bulk updating Gem source index for: http://rubygems.org/
ERROR: While executing gem ... (Gem::RemoteSourceException)
Error fetching remote gem cache: SocketError: getaddrinfo: no address associated with
hostname. (http://rubygems.org/yaml)
不斷收到上述錯誤,嘗試其他鏈接的問題和谷歌無濟於事,請幫助!導軌安裝問題
在此先感謝
意志。
寶石ENV:
C:\rubygems-1.3.7>gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
- INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/Ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mswin32-60
- GEM PATHS:
- C:/Ruby/lib/ruby/gems/1.8
- C:/Users/Will/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org"]
- REMOTE SOURCES:
- http://rubygems.org
它看起來像你的互聯網連接「沒有地址與主機名相關聯」或你的DNS連接有問題。在命令行嘗試'平rubygems.org' – jigfox 2010-06-08 14:46:49
C:\的rubygems-1.3.7>平rubygems.org 執行ping rubygems.org [72.4.120.124]與32個字節的數據:從72.4.120.124 答覆:字節= 32時間= 92ms TTL = 51 72.4.120.124:bytes = 32 time = 94ms TTL = 51 72.4.120.124:bytes = 32 time = 95ms TTL = 51 72.4.120.124:bytes = 32時間= 147ms TTL = 51個 平統計72.4.120.124: 包:在毫秒發送= 4,接收= 4,失落= 0(0%的損失), 近似往返時間: 最小值= 92ms,最大= 147ms,平均= 107ms – WANNABE 2010-06-08 14:53:02
我試過C:\ rubygems-1.3.7> ping http://rubygems.org Ping請求找不到主機http://rubygems.org。請檢查名稱並重試。這可能是問題,如果是的話,我需要編輯哪個文件? – WANNABE 2010-06-08 14:54:09