开发者

RVM + Ruby 1.9.1 + ruby-debug = error?

开发者 https://www.devze.com 2023-01-06 12:27 出处:网络
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 gue开发者_StackOverflowss there is no such solution yet, right? Therefore

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 gue开发者_StackOverflowss 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?


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

rvm gem install ruby-debug19 -- --with-ruby-include="$rvm_src_path/ruby-1.9.1-p378/"


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


For the latest ruby 1.9.2-preview3

gem install ruby-debug19 -- --with-ruby-include="$rvm_src_path/ruby-1.9.2-preview3"
0

精彩评论

暂无评论...
验证码 换一张
取 消