我有一个Ruby on Rails的应用程序,用来工作。我在一个月左右没有使用它,但随后尝试启动它,今天与rails s
并得到以下错误 - 事实上,当我尝试rails -h
或rails -v
或甚至gem -h
或sudo gem update --system
或任何必须做的时出现此错误与gem
。宝石和/或Ruby on Rails突然爆发,任何人都知道发生了什么事?
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.8.2.gemspec:11.
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date format in specification: "2011-08-25 00:00:00.000000000Z"
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Users/me/.gem/ruby/1.8/specifications/json-1.5.1.gemspec:10.
/Library/Ruby/Site/1.8/rubygems/specification.rb:277:in `_resort!': undefined method `name' for nil:NilClass (NoMethodError)
from /Library/Ruby/Site/1.8/rubygems/specification.rb:276:in `sort!'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:276:in `_resort!'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:270:in `_all'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:402:in `each'
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:216:in `find_all'
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:216:in `matching_specs'
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:238:in `to_specs'
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1182:in `gem'
from /usr/bin/rails:18
任何人都知道发生了什么事以及如何解决它?如何卸载这一切,并重新安装(不卸载我的操作系统,男人会实在太烂)
另外,我跑了“sudo的创业板更新轨”对在此之前爆发,即使我已经安装了护栏。 (我想更新它。)我猜这与它有关。 – Dave