我正在升级到Ruby 1.9.2,并收到以下错误:
/workspace/current/upgrade1.9.2/vendor/rails/activesupport/lib/active_support/dependencies.rb:131:in `rescue in const_missing': uninitialized constant Test::Unit::AutoRunner::Priority
/vendor/rails/activesupport/lib/active_support/dependencies.rb:120:in `const_missing'
from /.rvm/gems/ruby-1.9.2-p180@ruby-192-upgrade192/gems/test-unit-2.2.0/lib/test/unit/autorunner.rb:257:in `block in options'
from /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/optparse.rb:799:in `initialize'
from /.rvm/gems/ruby-1.9.2-p180@ruby-192-upgrade192/gems/test-unit-2.2.0/lib/test/unit/autorunner.rb:151:in `new'
from /.rvm/gems/ruby-1.9.2-p180@ruby-192-upgrade192/gems/test-unit-2.2.0/lib/test/unit/autorunner.rb:151:in `options'
from /.rvm/gems/ruby-1.9.2-p180@ruby-192-upgrade192/gems/test-unit-2.2.0/lib/test/unit/autorunner.rb:141:in `process_args'
from /.rvm/gems/ruby-1.9.2-p180@ruby-192-upgrade192/gems/test-unit-2.2.0/lib/test/unit/autorunner.rb:57:in `run'
from /Users/avijayendra/.rvm/gems/ruby-1.9.2-p180@ruby-192-upgrade192/gems/test-unit-2.2.0/lib/test/unit.rb:326:in `block in <top (required)>'
答案 0 :(得分:1)
当您通过RVM升级时,Gems不会在Ruby版本之间自动转移。如果您尚未将Gem定义为全局,请在使用新Ruby版本时重新安装必要的gem。