windows - 在 Windows Ruby 1.9.3 中安装 ruby​​-debug-base19

标签 windows ruby-debug ruby-1.9.3

我需要安装 ruby​​-debug-base19 以便在执行时在 Netbeans IDE 上激活调试:

$ gem install ruby-debug-base19

我收到以下错误。从日志生成中提取

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:24:19: error: conflicting types for 'rb_iseq_compile_with_option'
C:/Ruby193/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 expressions
ruby_debug.c:2392:27: warning: comparison between signed and unsigned integer expressions
make: *** [ruby_debug.o] Error 1

先决条件:

Ruby 安装成功

$ ruby --version
>>ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

DevKit 安装成功

$ gem install rdiscount --platform=ruby
>>Temporarily enhancing PATH to include DevKit...
>>Building native extensions.  This could take a while...
>>Successfully installed rdiscount-1.6.8
>>1 gem installed
>>Installing ri documentation for rdiscount-1.6.8...
>>Installing RDoc documentation for rdiscount-1.6.8...

$ ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html"
>><p><strong>Hello RubyInstaller</strong></p>

我已阅读 this article没有成功。

我错过了什么?

最佳答案

1) 从 http://rubyforge.org/frs/?group_id=8883 下载 linecache19-0.5.13.gem 和 ruby​​-debug-base19-0.11.26.gem

2) gem 安装linecache19-0.5.13.gem

3) gem install ruby​​-debug-base19-0.11.26.gem -- --with-ruby-include=c:\Ruby193\include\ruby-1.9.1\ruby-1.9.3-p125

关于windows - 在 Windows Ruby 1.9.3 中安装 ruby​​-debug-base19,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9705947/

相关文章:

ruby - 散列中的 ActiveRecord 对象未被垃圾收集——一个错误或某种缓存功能?

c# - Windows 本地主机上的 Redis 性能

windows - 是否可以在没有事件桌面和 Jenkins slave 的情况下运行 Selenium 测试?

ruby-on-rails - ruby rails : debugging rake tasks

ruby-on-rails - ruby 调试 "no such file to load --spec_helper"

bundler - 使用Ruby 1.9.3运行 'bundle install'时出错

windows - Windows 中的系统文件缓存使用 RAM 的哪一部分?

windows - 在一个终端中启动多个工具,如 grunt 和 http-server

ruby-on-rails - Rails 3.1 和 Ruby 1.9.3p125 : ruby-debug19 still crashes with "Symbol not found: _ruby_threadptr_data_type"

YAML,delayed_job : Psych vs Syck. 如何使 psych 读取 ruby​​ 对象的 attr_accessor