在 Ruby 1.9.3 的 Windows 上安装 ruby​​-debug-base19 [英] Installing ruby-debug-base19 on Windows in Ruby 1.9.3

查看:35
本文介绍了在 Ruby 1.9.3 的 Windows 上安装 ruby​​-debug-base19的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

$ gem install ruby​​-debug-base19

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

C:/Ruby193/bin/ruby.exe extconf.rb在 method.h 中检查 rb_method_entry_t.body ... 否检查 vm_core.h... 否C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39: 使用 RbConfig 而不是过时和弃用的 Config.在 method.h 中检查 rb_method_entry_t.body ... 否检查 vm_core.h ... 是检查 iseq.h ... 是的检查 insns.inc ... 是的检查 insns_info.inc ... 是的检查 eval_intern.h ... 是创建 Makefile制作生成 ruby​​_debug-i386-mingw32.def编译breakpoint.c编译 ruby​​_debug.cruby_debug.c:24:19: 错误:'rb_iseq_compile_with_option' 的类型冲突C:/Ruby193/include/ruby-1.9.1/ruby-1.9.3-p125/vm_core.h:505:7:注意:'rb_iseq_compile_with_option'的先前声明在这里ruby_debug.c:在函数context_jump"中:ruby_debug.c:2378:53:警告:有符号和无符号整数表达式之间的比较ruby_debug.c:2392:27:警告:有符号和无符号整数表达式之间的比较制作:*** [ruby_debug.o] 错误 1

先决条件:

Ruby 安装成功

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

DevKit 安装成功

$ gem install rdiscount --platform=ruby>>临时增强 PATH 以包含 DevKit...>>构建本机扩展.这可能需要一段时间...>>成功安装rdiscount-1.6.8>>已安装 1 个 gem>>正在安装 rdiscount-1.6.8 的 ri 文档...>>正在为 rdiscount-1.6.8 安装 RDoc 文档...$ ruby​​ -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html">><p><strong>你好 RubyInstaller</strong></p>

我已阅读这篇文章但没有成功.

我缺少什么?

解决方案

1) 从 http://rubyforge.org/frs/?group_id=8883

2) gem install 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

I need to install ruby-debug-base19 in order to active debug on Netbeans IDE, when I execute:

$ gem install ruby-debug-base19

I got the following error. Extracted from log generate

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

Prerequisites:

Ruby installed successfully

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

DevKit installed successfully

$ 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>

I have read this article without success.

What I'm missing?

解决方案

1) download linecache19-0.5.13.gem and ruby-debug-base19-0.11.26.gem from http://rubyforge.org/frs/?group_id=8883

2) gem install 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

这篇关于在 Ruby 1.9.3 的 Windows 上安装 ruby​​-debug-base19的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆