как установить ruby-debug в ruby 1.9.3 / Rails 3.2.1 [дубликат]

Возможный дубликат:
Rails 3.1 и Ruby 1.9.3p125: ruby-debug19 по-прежнему аварийно завершает работу с «Символ не найден: _ruby_threadptr_data_type»

Я закончил с печатью на консоль - я хочу перейти к 20-му веку и начать использовать отладчик !! Но как мне установить ruby-debug? Родной сборникruby-debug.c не удается, когда я пытаюсь установить гем ruby-debug19. Я просмотрел другие ТАК сообщения и пока не нашел ответа ...

Я использую Ruby 1.9.3-p0Я использую Rails 3.2 (с Gemfile, конечно)Я не использую RVM - вместо этого у меня есть полностью изолированная папка, содержащая все исполняемые файлы, гемы, исходные коды и т. Д. Я называю ее $ SANDBOX ниже ...пакетная установка не работает

Если я добавлю ruby-debug19 в мой Gemfile и сделаюbundle installсбой во время сборки сconflicting 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 из командной строки не работает

Если я попытаюсь собрать гем из командной строки, используя аргумент --with-ruby-include, указывающий наinclude каталог для текущего ruby, я получаю ту же ошибку:

% 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
что мне не хватает?

--With-ruby-include ожидает чего-то другого? Текущий ruby-debug19 не работает?

Ответы на вопрос(2)

Ваш ответ на вопрос