0
Installing ya2yaml (0.30) c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:371:in `rescue in block in initialize_copy': ya2yaml-0.30 has
an invalid value for @cert_chain (Gem::FormatException)
        from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:364:in `block in initialize_copy'
        from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:360:in `each'
        from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:360:in `initialize_copy'
        from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:638:in `initialize_dup'
        from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:638:in `dup'
        from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:638:in `for_cache'
        from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:746:in `to_ruby_for_cache'
        from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:234:in `write_spec'
        from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:175:in `install'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/source.rb:96:in `install'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/installer.rb:55:in `block in run'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `block in each'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `each'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `each'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/installer.rb:44:in `run'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/installer.rb:8:in `install'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/cli.rb:226:in `install'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor/task.rb:22:in `run'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor.rb:246:in `dispatch'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor/base.rb:389:in `start'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/bin/bundle:13:in `<top (required)>'
        from c:/Ruby192/bin/bundle:19:in `load'
        from c:/Ruby192/bin/bundle:19:in `<main>'

我试着像这样安装它:

$ gem install ya2yaml --platform=ruby
ERROR:  While executing gem ... (Gem::FormatException)
    ya2yaml-0.30 has an invalid value for @cert_chain

但我得到了另一个错误。

4

2 回答 2

0

更新宝石

gem update --system
于 2011-04-27T12:55:10.093 回答
-1

我想这应该可以解决您的问题

在 Windows7、Ruby1.9.2、Rails3 上安装“ya2yaml”gem 时出错

希望能帮助到你。

于 2011-04-05T08:51:12.263 回答