01 11 / 2011

Installing ruby-debug in ruby 1.9.3 with rvm

blog.wyeworks.com posted a way to install ruby-debug in 1.9.3 in rbenv addressing the details of the problem.

I’m just posting a quick installation in rvm. Install ruby 1.9.3 if you haven’t or skip to the next block.

rvm get head
rvm install ruby-1.9.3-p0
rvm reload
rvm 1.9.3

Now lets install the ruby-debug gem. Follow the below simple steps:

cd ~/tmp
wget http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
wget http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem

$ 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=$rvm_path/src/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

Tags:

Permalink 3 notes