Ruby on rails遗留应用程序错误与linecache gem

时间:2016-07-27 10:53:22

标签: ruby-on-rails ruby

我在rails遗留应用程序上有ruby,运行应用程序时出现以下错误

/usr/local/lib/ruby/gems/1.9.1/gems/linecache19-0.5.12/lib/trace_nums19.so: undefined symbol: ruby_current_thread - /usr/local/lib/ruby/gems/1.9.1/gems/linecache19-0.5.12/lib/trace_nums19.so (LoadError)
  /usr/local/lib/ruby/gems/1.9.1/gems/linecache19-0.5.12/lib/tracelines19.rb:12:in `require'
  /usr/local/lib/ruby/gems/1.9.1/gems/linecache19-0.5.12/lib/tracelines19.rb:12:in `rescue in <module:TraceLineNumbers>'

可以找到完整错误Here

有人能帮我发现问题吗?

1 个答案:

答案 0 :(得分:1)

linecache有一个修补的gem可以使用ruby-debug

将此添加到您的Gemfile

gem 'linecache19-patched' instead of 
gem  'linecache19'