¡He intentado muchas soluciones pero nada parece funcionar! Uso Ruby 1.9.3 y Rails 3.1.3 y deseo instalar la gema ruby-debug19. Esta ist lo que recibo de la PowerShell: se le pidióNo se puede instalar gem ruby-debug19 en win7 con ruby 1.9.2 instalado y 1.9.3
PS C:\Users\**\**\**> gem install ruby-debug19
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
C:/Ruby193/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:29:19: error: conflicting types for 'rb_iseq_compile_with_option'
C:/Ruby193/include/ruby-1.9.1/ruby-1.9.3-p0/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:2414:53: warning: comparison between signed and unsigned integer expressions
ruby_debug.c:2428:27: warning: comparison between signed and unsigned integer expressions
make: *** [ruby_debug.o] Error 1
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/ext/ruby_debug/gem_make.out
¡Muchas gracias! Ahora que he instalado esta joya. Pero, sin embargo, rubymine quiere el ruby-debug-ide para el modo de depuración. Si trato de instalar esta joya, aparece el siguiente error en PowerShell: ERROR: error al instalar ruby-debug-ide: ERROR: no se pudo construir la extensión nativa de la gema – kampfsau1808
No estoy seguro, pero creo que debes tener [DevKit] ] (http://rubyinstaller.org/add-ons/devkit/) instalado –
Ya he instalado el devkit (para ruby 1.9.2 y 1.9.3) – kampfsau1808