Skip to content

Instantly share code, notes, and snippets.

@dx7
Created November 2, 2011 14:33
Show Gist options
  • Star 27 You must be signed in to star a gist
  • Fork 38 You must be signed in to fork a gist
  • Save dx7/1333785 to your computer and use it in GitHub Desktop.
Save dx7/1333785 to your computer and use it in GitHub Desktop.
Installing ruby-debug with ruby-1.9.3-p0
### UPDATE: ruby-debuy19 is no longer maintained, use https://github.com/cldwalker/debugger
# Install with:
# bash < <(curl -L https://raw.github.com/gist/1333785)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
echo "Installing ruby-debug with ruby-1.9.3-p0 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
gem install linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p0/
rm linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem
echo "Done."
@Tarrasch
Copy link

Tarrasch commented Mar 1, 2012

The one-liner you presented in the commented code did it for me! Finally I can use rdebug, thanks! I use Ubuntu 11.10 together with rvm.

@dx7
Copy link
Author

dx7 commented Mar 2, 2012

good!

@pehrlich
Copy link

See this thread.. http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
Bottom line: ruby-debuy19 is no longer maintained, use https://github.com/cldwalker/debugger

@dx7
Copy link
Author

dx7 commented Jun 21, 2012

Thank you man. I updated the post with your comment.

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