como instalo o ruby-debug no ruby 1.9.3 / Rails 3.2.1 [duplicado]

Possible Duplicate:
Rails 3.1 e Ruby 1.9.3p125: o ruby-debug19 ainda trava com “Símbolo não encontrado: _ruby_threadptr_data_type”

Eu terminei de imprimir no console - quero passar para o século 20 e começar a usar um depurador !! Mas como instalo o ruby-debug? A compilação nativa deruby-debug.c falha quando tento instalar a gema ruby-debug19. Examinei outras postagens da SO e ainda não encontrei a resposta ...

Estou usando Ruby 1.9.3-p0Estou usando o Rails 3.2 (com Gemfile, é claro) NÃO ESTOU usando RVM - em vez disso, tenho um diretório totalmente em área restrita contendo todos os executáveis, gemas, fontes, etc. Refiro-me a ele como $ SANDBOX abaixo ... instalação do @bundle não funciona

Se eu adicionar ruby-debug19 ao meu Gemfile e fazerbundle install, falha durante a compilação comconflicting types for 'rb_iseq_compile_with_option':

# file: Gemfile
...
group :development do
  gem 'ruby-debug19'
end
...

% bundle install
...
Installing ruby-debug-base19 (0.11.25) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
        /Users/r/Developer/Topaz/usr/bin/ruby extconf.rb 
...
ruby_debug.c:29: error: conflicting types for 'rb_iseq_compile_with_option'
$SANDBOX/usr/include/ruby-1.9.1/ruby-1.9.3-p0/vm_core.h:505: error: previous declaration of 'rb_iseq_compile_with_option' was here
...
make: *** [ruby_debug.o] Error 1
gem install ruby-debug a partir da linha de comando não funciona

Se eu tentar construir a gema a partir da linha de comando, usando o argumento --with-ruby-include apontando para oinclude para o ruby atual, recebo o mesmo erro:

% gem install ruby-debug19 -- --with-ruby-include=$SANDBOX/packages/ruby-1.9.3-p0
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug19:
        ERROR: Failed to build gem native extension.

        $SANDBOX/usr/bin/ruby extconf.rb --with-ruby-include=$SANDBOX/packages/ruby-1.9.3-p0/include
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
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:29: error: conflicting types for 'rb_iseq_compile_with_option'
$SANDBOX/usr/include/ruby-1.9.1/ruby-1.9.3-p0/vm_core.h:505: error: previous declaration of 'rb_iseq_compile_with_option' was here
o que estou perdendo

Is --with-ruby-include esperando algo diferente? O ruby-debug19 atual está quebrado?

questionAnswers(4)

yourAnswerToTheQuestion