Skip to content

Instantly share code, notes, and snippets.

@ream88
Created March 1, 2012 11:47
Show Gist options
  • Save ream88/1949234 to your computer and use it in GitHub Desktop.
Save ream88/1949234 to your computer and use it in GitHub Desktop.
Ruby-1.9.x debugger install script
USER=`whoami`
RUBY_VERSION=`rbenv version | cut -f 1 -d " "`
RUBY_BASE_VERSION=`rbenv version | grep '^1.9.[0-9]-p[0-9]\{1,\}' -o`
curl -s -L http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem > linecache19-0.5.13.gem
gem install linecache19-0.5.13.gem
rm linecache19-0.5.13.gem
curl -s -L http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem > ruby-debug-base19-0.11.26.gem
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/Users/$USER/.rbenv/versions/$RUBY_VERSION/include/ruby-1.9.1/ruby-$RUBY_BASE_VERSION
rm 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