Rails 3.2升级失败

时间:2012-01-20 23:27:32

标签: ruby-on-rails

升级到Rails v3.2后,我收到此错误消息。我之前一直在运行3.2.0.rc2,它工作正常。

Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/actionmailer-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108a21eb8> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/actionpack-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108995dc8> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108a64858> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/activerecord-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108840a68> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/activeresource-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001089b2658> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/rails-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001073d4fe8> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/railties-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108913dc8> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/actionmailer-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108a21eb8> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/actionpack-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108995dc8> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108a64858> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/activerecord-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108840a68> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/activeresource-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001089b2658> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/rails-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001073d4fe8> 3.2.0"]
Invalid gemspec in [/Users/kapil/.rvm/gems/ruby-1.9.2-p0/specifications/railties-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108913dc8> 3.2.0"]

2 个答案:

答案 0 :(得分:10)

不确定这是否相关,但如果您运行的是Ruby 1.8.7,则需要将RubyGems更新为1.8.15。使用gem update --system

进行更新

http://weblog.rubyonrails.org/2012/1/20/rails-3-2-0-faster-dev-mode-routing-explain-queries-tagged-logger-store

答案 1 :(得分:0)

你使用的是什么版本的rubygems?

版本1.8.13以及之前的版本3.2 https://github.com/rails/rails/issues/4317

似乎存在问题

尝试将rubygems更新为1.8.14