2010-07-10 122 views
4

我想在TextMate中的方法之間得到一個體面的導航。我很想在抽屜中列出它們的列表,但我想現在還沒有這樣的解決方案,對吧?因此我試圖設置RubyAMPRuby 1.9.1-p378配合使用,通過RVM安裝,但有一些麻煩。 RubyAMP需要ruby-debug,這裏是我所得到的,如果我嘗試安裝寶石RVM + Ruby 1.9.1 + ruby​​-debug =錯誤?

$ 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 *** 

然而,the gem page說,它應與1.9.x中工作我該如何解決它?

+0

'sudo gem update'? – Adrian 2010-07-10 17:12:39

+0

它沒有幫助。我很困惑''不能處理1.9.x'。它來自'ruby-debug'嗎?或者它是另一個組件? – Andrei 2010-07-11 10:17:02

回答

5

試試這個(從https://rvm.io/support/troubleshooting):

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

在我的情況下$ rvm_src_path是未定義的。在您的rvm區域中搜索vm_core.h,它的目錄就是您可能需要的目錄。我是/usr/local/rvm/src/ruby-1.9.2-p180 – aceofspades 2011-05-17 23:29:04

+0

ruby​​-debug19需要linecache19和linecache19需要Ruby ver。 > = 1.9.2。你知道另一個解決方法嗎?注意:rvm gem install linecahce19 - --with-ruby-include =「$ rvm_src_path/ruby​​-1.9.1-p378 /」失敗,因爲需要ruby 1.9.2。謝謝你的優勢。 – rfellons 2012-09-27 16:15:58

0

有關最新的紅寶石1.9.2-preview3

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

最新的紅寶石1.9.2-P0運行gem install ruby-debug19順利。