0
我想结合使用webrat和Cucumber为Web应用程序编写验收测试。当我尝试安装webrat gem时,出现以下错误。我试图删除C:\ Ruby193 \ lib \ ruby \ gems \ 1.9.1 \ cache *和gem update --system
,但没有任何运气。使用Ruby 1.9.3和Rubygems 1.8.15安装webrat
我想在Windows7环境中安装Ruby上的gem。据我可以看到问题是这样的:“在C:/Ruby193/lib/ruby/gems/1.9.1/cache/webrat-0.7.3.gem找不到元数据”
任何帮助是非常感谢,谢谢!
gem install webrat --debug
Exception `NameError' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::InstallCommand
Exception `Errno::EWOULDBLOCK' at C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:141 - A non-blocking socket operation could not be completed immediately. - read would block
Exception `Errno::EWOULDBLOCK' at C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:141 - A non-blocking socket operation could not be completed immediately. - read would block
Exception `NoMethodError' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1483 - undefined method `to_ary' for #<Gem::Specification name=webrat version=0.7.3>
Exception `NoMethodError' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1483 - undefined method `to_ary' for #<Gem::Specification name=webrat version=0.7.3>
Exception `Errno::EEXIST' at C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:247 - File exists - C:/Ruby193/lib/ruby/gems/1.9.1
Exception `Gem::Package::FormatError' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:122 - no metadata found in C:/Ruby193/lib/ruby/gems/1.9.1/cache/webrat-0.7.3.gem
Exception `Gem::InstallError' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:121 - invalid gem format for C:/Ruby193/lib/ruby/gems/1.9.1/cache/webrat-0.7.3.gem
ERROR: Error installing webrat:
invalid gem format for C:/Ruby193/lib/ruby/gems/1.9.1/cache/webrat-0.7.3.gem
我对我的Win7机器上的rubygems 1.8.17没有问题。你尝试过'update_rubygems'还是你锁定到1.8.15? – ScottJShea 2012-02-26 22:31:38
谢谢你的回复:) Webrat做的工作,所以我改变了。问题解决了。 – 2012-03-05 10:05:38
然后我将它移动到一个答案! – ScottJShea 2012-03-05 13:28:18