Symbol not found: _ruby_current_thread for 1.9.3-p374
Closed this issue · 3 comments
sheerun commented
What I do:
gem install debugger
# add debugger to development section of gemfile
bundle exec rails server
What I get:
/Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/bundler/gems/rails-cba8c3657aa0/activesupport/lib/active_support/dependencies.rb:251:in `require': dlopen(/Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle, 9): Symbol not found: _ruby_current_thread (LoadError)
Referenced from: /Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
Expected in: flat namespace
in /Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle - /Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
As you can see for some reason debugger uses ruby-debug-base19-0.11.25 headers for ruby 1.9.3-p374, and that's probably the reason it fails.
It also doesn't work if I instal debugger using:
gem install debugger -- --with-ruby-include=~/.rbenv/versions/1.9.3-p374/include
or
gem install debugger -- --with-ruby-include=~/.rbenv/versions/1.9.3-p374/include/ruby-1.9.1/ruby-1.9.3-p374
gtd commented
Same here with 1.9.3-p327:
dlopen(/Users/dasil003/.rvm/gems/ruby-1.9.3-p327/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle, 9): Symbol not found: _ruby_current_thread
Referenced from: /Users/dasil003/.rvm/gems/ruby-1.9.3-p327/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
Expected in: flat namespace
in /Users/dasil003/.rvm/gems/ruby-1.9.3-p327/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle - /Users/dasil003/.rvm/gems/ruby-1.9.3-p327/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
gtd commented
Nevermind, I missed an instance of ruby-debug19 still in the Gemfile
sheerun commented
omg. me too... so embarrassing ;)