2012-10-23 52 views
1

我剛剛通過rvm upgrade命令和gemset從ruby 1.9.3-p194升級到1.9.3-p286。現在,當我運行耙鐵軌上我的Rails應用程式升級它給了我下面的跟蹤:Ruby升級/從1.9.3-p194降級到1.9.3-p286

[email protected]:~/Projects/icon$ rake rails update --trace 
rake aborted! 
cannot load such file -- ruby_debug.so 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/ruby-debug-base19-0.11.26/lib/ruby-debug-base.rb:1:in `require' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/ruby-debug-base19-0.11.26/lib/ruby-debug-base.rb:1:in `<top (required)>' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:5:in `require' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:5:in `<top (required)>' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `block (2 levels) in require' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `each' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `block in require' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `each' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `require' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/gems/bundler-1.2.1/lib/bundler.rb:128:in `require' 
/home/nosh/Projects/icon/config/application.rb:7:in `<top (required)>' 
/home/nosh/Projects/icon/Rakefile:5:in `require' 
/home/nosh/Projects/icon/Rakefile:5:in `<top (required)>' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' 
/home/nosh/.rvm/gems/[email protected]/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' 
/home/nosh/.rvm/gems/[email protected]/bin/rake:19:in `load' 
/home/nosh/.rvm/gems/[email protected]/bin/rake:19:in `<main>' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `eval' 
/home/nosh/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `<main>' 

任何建議表示讚賞。如果它的ruby版本與ruby debug 19 gem衝突。那我該如何降級回1.9.3-p194

+0

如果您通過rvm進行安裝,您應該能夠切換回該補丁程序'rvm use ruby​​-1.9.3-p194'。也不是一個真正的答案,但你總是可以嘗試用pry進行調試,而不是:)。 – agmcleod

回答

0

我想我只是嘗試一下;但允許升級的相同rvm命令也允許降級。所以下面的命令允許我降級到以前的版本:

rvm upgrade 1.9.3-p286 1.9.3-p194 

它也遷移了寶石。 順便說一句,我也發現降級後,我用的rake rails update命令有不正確的語法。 因此,這是不正確的:

rake rails update --trace (incorrect) 

這是正確的:

rake rails:update --trace (correct) 

我沒有在升級後得到的錯誤再次,這意味着我很可能使用了錯誤的語法。