1

I have ruby on rails legacy application and I have the following error when I run the application

/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>'

Full error can be found Here

Could anyone help me spot the problem?

3
  • Possibly related: stackoverflow.com/questions/8378277/… Commented Jul 27, 2016 at 10:56
  • I appreciate the effort to relate to possible duplicates. I am looking for a solution I already stumbled upon them and they did not work. @DamienRoche The link to ruby source is dead in that post. Commented Jul 27, 2016 at 11:16
  • @j-dexx Sorry but that didn't solve my problem. I posted my solution below thanks anyway Commented Jul 27, 2016 at 11:20

1 Answer 1

1

linecache has a patched gem to work with ruby-debug

add this to your Gemfile

gem 'linecache19-patched' instead of 
gem  'linecache19' 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.