Ruby on rails 将Rails从3.0.9升级到3.2时出错
我按照Railscast指南更新到Rails 3.2,在我的gem文件中将我的Rails更改为3.2.0,并进行捆绑更新,它成功地安装了所有内容,但当我运行任何东西时,我会收到一条非常长的错误消息。这是第一部分Ruby on rails 将Rails从3.0.9升级到3.2时出错,ruby-on-rails,gem,runtime-error,Ruby On Rails,Gem,Runtime Error,我按照Railscast指南更新到Rails 3.2,在我的gem文件中将我的Rails更改为3.2.0,并进行捆绑更新,它成功地安装了所有内容,但当我运行任何东西时,我会收到一条非常长的错误消息。这是第一部分 WARNING: #<ArgumentError: Illformed requirement ["#<Syck::DefaultKey:0x007fa232a830f0> 3.2.0"]> # -*- encoding: utf-8 -*- Gem::Spe
WARNING: #<ArgumentError: Illformed requirement ["#<Syck::DefaultKey:0x007fa232a830f0> 3.2.0"]>
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{actionmailer}
s.version = "3.2.0"
听起来可能是rubygems的问题,你能试着升级rubygems看看是否能解决它吗?另外,这只是一个建议,但我会升级到rails 3.2.9,而不是3.2.0,因为它包含一些重要的安全修复。这只是一个猜测,但请尝试清除所有gem,删除Gemfile.lock(或者更好,将其移开,以便在需要时可以恢复),然后运行bundle。我试着运行bundle,但同样的错误出现了,我的意思是我试图删除我所有的gem和Gemfile.lock,同样的错误出现了升级rubygems也没有解决任何问题
WARNING: Invalid .gemspec format in '/Users/connorphillips/.rvm/gems/ruby-1.9.2-p320/specifications/rails-3.2.0.gemspec'
WARNING: #<ArgumentError: Illformed requirement ["#<Syck::DefaultKey:0x007fa2327b5e68> 3.2.0"]>
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{railties}
s.version = "3.2.0"
WARNING: Invalid .gemspec format in '/Users/connorphillips/.rvm/gems/ruby-1.9.2-p320/specifications/railties-3.2.0.gemspec'
Could not find activemodel-3.2.0 in any of the sources
Run `bundle install` to install missing gems.