Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM + Ruby 1.9.1 + ruby-debug = error?

I am trying to get a decent navigation between my methods in TextMate. I would love to have a list of them in a drawer, but I guess there is no such solution yet, right? Therefore I am trying to set up RubyAMP to work with Ruby 1.9.1-p378 installed via RVM, but have some troubles. RubyAMP needs ruby-debug, and here is what I get if I try to install the gem

$ rvm gem install ruby-debug
info: ruby-1.9.1-p378: ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-darwin10] 
Building native extensions.  This could take a while...

ERROR:  Error installing ruby-debug:
    ERROR: Failed to build gem native extension.

/Users/andrei/.rvm/rubies/ruby-1.9.1-p378/bin/ruby extconf.rb
Can't handle 1.9.x yet
*** extconf.rb failed ***

However, the gem page says that it should work with 1.9.x. How can I fix it?

like image 347
Andrei Avatar asked Dec 28 '22 10:12

Andrei


2 Answers

Try this(from https://rvm.io/support/troubleshooting):

rvm gem install ruby-debug19 -- --with-ruby-include="$rvm_src_path/ruby-1.9.1-p378/"
like image 170
carrutherji Avatar answered Jan 14 '23 06:01

carrutherji


The latest ruby 1.9.2-p0 runs gem install ruby-debug19 without a hitch.

like image 36
bastibe Avatar answered Jan 14 '23 05:01

bastibe