Microsoft Windows [版本 6.0.6000]
版权所有 (C) 2006 Microsoft Corporation。保留所有权利。

e:\>ruby -v
ruby 1.9.0 (2007-12-25 revision 14709) [i386-mswin32]

e:\>gem -v
1.0.1

e:\>gem update --system
Updating RubyGems...
Bulk updating Gem source index for: http://gems.rubyforge.org
D:/Ruby/lib/ruby/1.9.0/rubygems/source_index.rb:386:in `require': 126: 找不到指定的模块。 - D:/Ruby/lib/ruby/1.9.0/i386-mswin32/zlib.so (LoadError)
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_index.rb:386:in `unzip'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_index.rb:333:in `block in fetch_index_from'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_index.rb:329:in `each'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_index.rb:329:in `fetch_index_from'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_index.rb:352:in `fetch_bulk_index'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_index.rb:292:in `update'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_info_cache_entry.rb:33:in `refresh'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_info_cache.rb:135:in `block in refresh'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_info_cache.rb:128:in `each'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_info_cache.rb:128:in `refresh'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_info_cache.rb:40:in `cache'
from D:/Ruby/lib/ruby/1.9.0/rubygems/source_info_cache.rb:50:in `search'
from D:/Ruby/lib/ruby/1.9.0/rubygems/commands/update_command.rb:67:in `execute'
from D:/Ruby/lib/ruby/1.9.0/rubygems/command.rb:136:in `invoke'
from D:/Ruby/lib/ruby/1.9.0/rubygems/command_manager.rb:104:in `process_args'
from D:/Ruby/lib/ruby/1.9.0/rubygems/command_manager.rb:74:in `run'
from D:/Ruby/lib/ruby/1.9.0/rubygems/gem_runner.rb:39:in `run'
from D:/Ruby/bin/gem.bat:30:in `<main>'

e:\>gem

RubyGems is a sophisticated package manager for Ruby. This is a
basic help message containing pointers to more information.

Usage:
gem -h/--help
gem -v/--version
gem command [arguments...] [options...]

Examples:
gem install rake
gem list --local
gem build package.gemspec
gem help install

Further help:
gem help commands list all 'gem' commands
gem help examples show some examples of usage
gem help platforms show information about platforms
gem help <COMMAND> show help on COMMAND
(e.g. 'gem help install')
Further information:
http://rubygems.rubyforge.org

e:\>gem list

*** LOCAL GEMS ***



e:\>gem update --system
Updating RubyGems...
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem ... (Gem::RemoteSourceException)
Error fetching remote gem cache: timed out fetching http://gems.rubyforge.org/yaml

e:\>
  • 1.1.4.0__zlib.zip (26.3 KB)
  • 描述: 把它解压到windows\system32就可以了!
  • 下载次数: 57
评论
mineral 2008-07-15
谢谢,果然好使!
Ozone 2008-06-18
谢谢,今天使用的时候,也遇到这个问题,收藏了!
发表评论

您还没有登录,请登录后发表评论

jetbillwin
搜索本博客
最近加入圈子
最新评论