0
Webアプリケーションの受け入れテストを書くために、私はCucumberと組み合わせてwebratを使いたいと思います。私がwebrat gemをインストールしようとすると、以下に述べるエラーが出ます。 C:\ Ruby193 \ lib \ ruby \ gems \ 1.9.1 \ cache *とgem update --system
を削除しようとしました。私はRuby 1.9.3とRubygems 1.8.15をインストールしてください。
RubyにWindows7環境で宝石をインストールしようとしています。 "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
返事ありがとうございます:) Webratは仕事をしたので、私はそれに変更しました。問題が解決しました。 –
私はそれを答えに移します! – ScottJShea