升級到Rails 3.2和Rubygems時,出現錯誤消息。正如在stackoverflow建議,我跑了gem update --system
升級Rubygems到1.8.24。在此更新之後,我運行了一條簡單的rails s
命令,並且我運行的每個命令都會出現此持續性錯誤。Rubygems,gemspec,可能的rvm錯誤
我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
命令安裝寶石,這可能會讓我的流程搞砸。有沒有辦法檢查?或糾正?
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>'