Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing ruby-debug-base19 on Windows in Ruby 1.9.3

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?

like image 970
rmaceissoft Avatar asked Mar 14 '12 16:03

rmaceissoft


People also ask

How do I install Ruby 1.9 3 on Windows?

Install Ruby.In the Windows Explorer, double click on the rubyinstaller-1.9. 3-p194.exe file and follow the directions. By default, Ruby will be installed in the C:\Ruby193 folder. Check the boxes "Install Tcl/Tk support" and "Add Ruby executables to your PATH." Then click Install >> Finish.

What is Ruby debug IDE?

GitHub - ruby-debug/ruby-debug-ide: An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.


1 Answers

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

like image 159
Michal Láska Avatar answered Oct 16 '22 21:10

Michal Láska