新手问题 [已解决] ruby-debug 死活安不上。附 log

wgf4242 · 2013年03月25日 · 最后由 ery 回复于 2013年03月25日 · 3473 次阅读

【已解决】感谢 2L

上网搜过了。说安 ruby-debug19。我安的就是它。安不上。求解决

D:\Downloads\gemdebug>ruby -v
ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

D:\Downloads>gem install ruby-debug-base19x-0.11.29.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-base19x-0.11.29.gem:
        ERROR: Failed to build gem native extension.

        C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/
ruby_core_source.rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... yes
checking for iseq.h... yes
checking for insns.inc... yes
checking for insns_info.inc... yes
checking for eval_intern.h... yes
creating Makefile

make
generating ruby_debug-i386-mingw32.def
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:24:19: error: conflicting types for 'rb_iseq_compile_with_option'
C:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby-1.9.3-p125/vm_core.h:505:7:
note: previous declaration of 'rb_iseq_compile_with_option' was here
ruby_debug.c: In function 'context_jump':
ruby_debug.c:2378:53: warning: comparison between signed and unsigned integer ex
pressions
ruby_debug.c:2392:27: warning: comparison between signed and unsigned integer ex
pressions
make: *** [ruby_debug.o] Error 1


Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/ruby-debug-base19x-0.11.29 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debu
g-base19x-0.11.29/ext/ruby_debug/gem_make.out

还是用 linux 吧,会少很多这样的问题

怎么死活要装 ruby debug 呢,直接用 pry

换用 pry 了,等 debugger 稳定好用了再看看:)

很久以前,我安装 debug 的时候,也经常遇到很多奇怪的问题, 后来我换成了 pry!从此不再有烦恼!

我发现你是 windows,你应该尽早用 linux 的 ubuntu,否则折磨死你。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号