Skip to content

Instantly share code, notes, and snippets.

@boriscy
Created November 1, 2011 18:57
Show Gist options
  • Save boriscy/1331533 to your computer and use it in GitHub Desktop.
Save boriscy/1331533 to your computer and use it in GitHub Desktop.
ruby-debug in ruby-1.9.3 and ubuntu
#To install ruby-debug on Ubuntu ruby-1.9.3 you need to download from http://rubyforge.org/frs/?group_id=8883
linecache19-0.5.13.gem
ruby_core_source-0.1.5.gem
ruby-debug19-0.11.6.gem
ruby-debug-base19-0.11.26.gem
#Then in your console
export RVM_SRC=/your/path/to/ruby-1.9.3
# Note, your source path should be something like /home/user/.rvm/src/ruby-1.9.3-p0
gem install archive-tar-minitar
gem install ruby_core_source-0.1.5.gem -- --with-ruby-include=/$RVM_SRC
gem install linecache19-0.5.13.gem -- --with-ruby-include=/$RVM_SRC
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/$RVM_SRC
gem install ruby-debug19-0.11.6.gem -- --with-ruby-include=/$RVM_SRC
@jaredmdobson
Copy link

Thank you so much I just some extra folders and the rest worked.
export RVM_SRC=/home/jaredmdobson/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1/ruby-1.9.3-p0

@fawce
Copy link

fawce commented Feb 3, 2012

wow, thank you so much. check out my fork if you have a chance!

@jonleung
Copy link

jonleung commented Feb 3, 2012

For anyone else that has problems with this, checkout @andrewroth 's post, that worked for me!

Why is this still not fixed yet?!?!

@tomafc330
Copy link

great that worked. yes they should really fix it

@xnzac
Copy link

xnzac commented Mar 30, 2012

+1 for @andrewroth's method!

@jeremyw
Copy link

jeremyw commented Apr 4, 2012

@postmodern
Copy link

Couldn't you also use Ruby 1.9's built-in debugger?

require 'debug'

Or via the command-line:

$ ruby -rdebug test.rb

Also, the debugger fork of ruby-debug19 should work, if you absolutely need to stick with ruby-debug.

@boriscy
Copy link
Author

boriscy commented Apr 6, 2012

Thanx @jeremyw and @postmodern, I'm using debugger now.

@davidneimeyer
Copy link

On my super vanilla CentOS 6.3:

gem install ruby_core_source
gem install linecache
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/usr/local/include/ruby-1.9.1/ruby-1.9.3-p0/

@bharadwaj6
Copy link

couldn't have worked without @andrewroth's help. Ty dude!

@ytrezq
Copy link

ytrezq commented Aug 23, 2015

@boriscy now that rubyforge has been definitely shut down, where to download ruby-debug-base19-0.11.26.gem?

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