2012-07-30 75 views
2

我想安裝紅寶石調試19,所以我可以運行spork。雖然這很令人沮喪,但我得到了一些錯誤。我搜索了一段時間無濟於事。我正在運行1.9.3-p194。安裝ruby debug19。編譯器無法生成可執行文件

以下是錯誤消息:

構建原生擴展。這可能需要一段時間... 錯誤:安裝ruby-debug19錯誤: 錯誤:無法構建gem本機擴展。

/Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb 
checking for rb_method_entry_t.body in method.h... *** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers. Check the mkmf.log file for more 
details. You may need configuration options. 

Provided configuration options: 
--with-opt-dir 
--with-opt-include 
--without-opt-include=${opt-dir}/include 
--with-opt-lib 
--without-opt-lib=${opt-dir}/lib 
--with-make-prog 
--without-make-prog 
--srcdir=. 
--curdir 
--ruby=/Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/bin/ruby 
--with-ruby-dir 
--without-ruby-dir 
--with-ruby-include 
--without-ruby-include=${ruby-dir}/include 
--with-ruby-lib 
--without-ruby-lib=${ruby-dir}/lib 
/Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError) 
You have to install development tools first. 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1002:in `block in have_struct_member' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `postpone' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for' 
from /Users/jasonvdm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1001:in `have_struct_member' 
from extconf.rb:10:in `block in <main>' 
from /Users/jasonvdm/.rvm/gems/[email protected]/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `call' 
from /Users/jasonvdm/.rvm/gems/[email protected]/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `create_makefile_with_core' 
from extconf.rb:24:in `<main>' 
+0

見我回答在http://stackoverflow.com/a/10414984/773690 – iblue 2012-07-30 22:15:19

+0

[Debugging in ruby​​ 1.9]可能的重複(http://stackoverflow.com/questions/1083451/debugging-in-ruby-1-9) – iblue 2012-07-30 22:30:07

+0

使感覺,但將調試工作spork?我將不得不手動將所有內容更改爲調試器,但這不是什麼大問題 – 2012-07-30 23:39:54

回答

0

改爲使用調試器gem。紅寶石debug19永遠長不大支持ruby1.9.3

相關問題