我有標準的紅寶石頭和Rails的3.1rc4。 我安裝紅寶石調試與以下說明從http://dirk.net/2010/04/17/ruby-debug-with-ruby-19x-and-rails-3-on-rvm/Rails與紅寶石調試器拋'找不到符號:_ruby_current_thread(LoadError)'
但是當我運行rails s --debugger
它會拋出這個奇怪的錯誤
/Users/schovi/.rvm/gems/ruby-head/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:in `require': dlopen(/Users/schovi/.rvm/gems/ruby-head/gems/linecache19-0.5.12/lib/trace_nums19.bundle, 9): Symbol not found: _ruby_current_thread (LoadError)
Referenced from: /Users/schovi/.rvm/gems/ruby-head/gems/linecache19-0.5.12/lib/trace_nums19.bundle
Expected in: flat namespace
in /Users/schovi/.rvm/gems/ruby-head/gems/linecache19-0.5.12/lib/trace_nums19.bundle - /Users/schovi/.rvm/gems/ruby-head/gems/linecache19-0.5.12/lib/trace_nums19.bundle
from /Users/schovi/.rvm/gems/ruby-head/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:in `block in require'
from /Users/schovi/.rvm/gems/ruby-head/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:223:in `block in load_dependency'
任何想法? 謝謝,大衛
你有沒有解決它?我有同樣的問題。 –
很久以前。我認爲問題在於Ruby版本。我有一些1.9.2的邊緣,這是問題。現在我運行'ruby 1.9.2p180'並且沒問題。我重新安裝了整個ruby,rvm,gems在使用幾年之後會導致真正的大混亂:) – Schovi
1.9.3-preview1中出現同樣的錯誤 –