4

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?

Andrei
  • 10,918
  • 12
  • 76
  • 110
  • It didn't help. I am confused by `Can't handle 1.9.x yet`. Does it come from `ruby-debug`? Or it is another component? – Andrei Jul 11 '10 at 10:17

3 Answers3

5

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

rvm gem install ruby-debug19 -- --with-ruby-include="$rvm_src_path/ruby-1.9.1-p378/"
mpapis
  • 52,729
  • 14
  • 121
  • 158
carrutherji
  • 1,115
  • 10
  • 18
  • In my case $rvm_src_path was undefined. Search for vm_core.h in your rvm area, its directory is the one you might need. Mine was /usr/local/rvm/src/ruby-1.9.2-p180 – aceofspades May 17 '11 at 23:29
  • ruby-debug19 require linecache19 and linecache19 require Ruby ver. >= 1.9.2. Do you know another workaround ? NB: rvm gem install linecahce19 -- --with-ruby-include="$rvm_src_path/ruby-1.9.1-p378/" fails because require ruby 1.9.2. Thanks in advantage. – rfellons Sep 27 '12 at 16:15
5

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

bastibe
  • 16,551
  • 28
  • 95
  • 126
0

For the latest ruby 1.9.2-preview3

gem install ruby-debug19 -- --with-ruby-include="$rvm_src_path/ruby-1.9.2-preview3"
gdonald
  • 984
  • 2
  • 12
  • 23