升级到 Rails 3.2 和 Rubygems 时出现错误消息。按照 stackoverflow 的建议,我gem update --system
将 Rubygems 升级到 1.8.24。在此更新之后,我运行了一个简单的rails s
命令,并且我运行的每个命令都出现了这个持续错误。
我的 RVM 版本是:1.17.7
我的 Ruby 版本是:ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin11.3.0]
当我运行时bundle install
,我得到一个错误:
"Could not find twitter-1.6.0 in any of the sources"
当我运行时rails -v
,我得到一个错误:
could not find rack-1.2.3. run bundle install.
我想我可能sudo
在某个时候也使用该命令安装了 gems,这可能搞砸了我的过程。有没有办法检查?或更正?
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/actionmailer-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d85b5f0> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/actionpack-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d93d6a8> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d89b5b0> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activerecord-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d9ddc48> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activeresource-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d9cdca8> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/rails-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d908d68> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/railties-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8c034468> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/actionmailer-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d85b5f0> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/actionpack-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d93d6a8> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d89b5b0> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activerecord-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d9ddc48> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activeresource-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d9cdca8> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/rails-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d908d68> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/railties-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8c034468> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/actionmailer-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d85b5f0> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/actionpack-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d93d6a8> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d89b5b0> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activerecord-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d9ddc48> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activeresource-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d9cdca8> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/rails-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d908d68> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/railties-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8c034468> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/actionmailer-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d85b5f0> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/actionpack-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d93d6a8> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d89b5b0> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activerecord-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d9ddc48> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/activeresource-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d9cdca8> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/rails-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8d908d68> 3.2.0"]
Invalid gemspec in [/Users/jdo/.rvm/gems/ruby-1.9.2-p320/specifications/railties-3.2.0.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x007fad8c034468> 3.2.0"]
script/rails:6:in `require': no such file to load -- rails/commands (LoadError)
from script/rails:6:in `<main>'