Skip to content

Instantly share code, notes, and snippets.

@denyago
Created December 26, 2011 13:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denyago/1521093 to your computer and use it in GitHub Desktop.
Save denyago/1521093 to your computer and use it in GitHub Desktop.
Insatall ruby-debug19 on ruby 1.9.3-p0 and Rails 3.1

Patch for load speed: https://gist.github.com/1484985

cd /tmp
git clone git://gist.github.com/1484985.git
rvm install ruby-1.9.3-p0 --patch /tmp/1484985/cached_lp_sorted_lf.patch -n patched

Download fresh ruby-debug19

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 -- --with-ruby-include="$rvm_path/src/`rvm tools strings`"
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include="$rvm_path/src/`rvm tools strings`"

Note this in Gemfile

  gem 'rb-readline'
  gem 'linecache19', '0.5.13'
  gem 'ruby-debug-base19', '0.11.26'
  gem 'ruby-debug19', :require => 'ruby-debug'

Run

bundle
@the-undefined
Copy link

Skipping step 1 and starting with the curl commands worked fine for me with Ruby-1.9.3-p125, thanks Denis

@denyago
Copy link
Author

denyago commented Apr 19, 2012

It's better to use gem 'debugger' as a substitute for ruby-debug

@the-undefined
Copy link

the-undefined commented Apr 19, 2012 via email

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