我有一個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