Skip to content

Instantly share code, notes, and snippets.

@michaelglass
Created October 31, 2011 13:59
Show Gist options
  • Save michaelglass/1327550 to your computer and use it in GitHub Desktop.
Save michaelglass/1327550 to your computer and use it in GitHub Desktop.
1.9.3-p0 ruby-debug19 error
pen(/Users/michaelglass/.rvm/gems/ruby-1.9.3-p0@global/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle, 9): Symbol not found: _ruby_threadptr_data_type (LoadError)
Referenced from: /Users/michaelglass/.rvm/gems/ruby-1.9.3-p0@global/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
Expected in: flat namespace
in /Users/michaelglass/.rvm/gems/ruby-1.9.3-p0@global/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle - /Users/michaelglass/.rvm/gems/ruby-1.9.3-p0@global/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
@michaelglass
Copy link
Author

answer is here:
http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug

From the article:

First download linecache19-0.5.13.gem and ruby-debug-base19-0.11.26.gem from http://rubyforge.org/frs/?group_id=8883, then …

$ gem install linecache19-0.5.13.gem 
Building native extensions.  This could take a while...
Successfully installed linecache19-0.5.13
1 gem installed
$ gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/Users/santiago/.rbenv/source/ruby-1.9.3-p0  
Building native extensions.  This could take a while...
Successfully installed ruby-debug-base19-0.11.26
1 gem installed
$ irb
irb(main):001:0> require 'ruby-debug'
=> true

@mdoroudi
Copy link

This didn't work for me on my Mac OSX, it worked on my Ubuntu box, any ideas?

@prabeshshrestha
Copy link

@mdoroudi comment out ruby-debug , use pry . I think that is the best solution.

@mdoroudi
Copy link

@prabeshshrestha I'm not so familiar with pry is it (https://github.com/pry/pry) ? because it sais it's a replacement for irb, but I'm looking to debug my program in rails

@prabeshshrestha
Copy link

@mdoroudi I am using it to debug my applications in rails . It works great with rails application. Let me know if you are still not able to use it for your rails app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment