Installing Ruby-Debug-Base19 under Windows 7

When attempting to install ruby-debug19 on a Windows 7 partition, I have
gotten the following error sequence:

ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe extconf.rb

checking for rb_method_entry_t.called_id in method.h… no
checking for rb_control_frame_t.method_id in method.h… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

I have tried re-installing Ruby (version 1.9.3 p0) and DevKit, but this
did not seem to change the result, nor did removing c:\MinGW\bin from
the PATH variable. The error remains the same when using the latest
version of the debug-base gem (ruby-debug-base19-0.11.26.gem) gets the
same result.

Adding the option ‘–with-ruby-include=C:\Ruby193\include’ simply
results in the error message:

ERROR: While executing gem … (OptionParser::InvalidOption
invalid option: --with-ruby-include=C:\Ruby193\include

I have been able to install other native gems such as rdiscount, which
implies that the DevKit installation is at least partially correct. I am
wondering if anyone can give any recommendations.

Update: I have since installed ruby_core_source, but this didn’t change
the error. I then tried installing the preview version of ruby-debug19x
(0.11.30), and got a rather different set of error messages:

Fetching: ruby-debug-base19x-0.11.30.pre6.gem (100%)
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…
ERROR: Error installing ruby-debug-base19x:
ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe extconf.rb

checking for rb_method_entry_t.called_id in method.h… no
checking for rb_control_frame_t.method_id in method.h… no
checking for if rb_iseq_compile_with_option was added an argument
filepath… 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.called_id in method.h… yes
checking for rb_method_entry() in method.h… yes
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
checking for if rb_iseq_compile_with_option was added an argument
filepath… yes
creating Makefile

make
generating ruby_debug-i386-mingw32.def
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c: In function ‘filename_cmp’:
ruby_debug.c:522:9: warning: implicit declaration of function
‘filename_cmp_impl’
ruby_debug.c:530:7: warning: implicit declaration of function ‘realpath’
ruby_debug.c:530:34: warning: comparison between pointer and integer
linking shared-object ruby_debug.so
ruby_debug.o: In function filename_cmp': C:\Ruby193\lib\ruby\gems\1.9.1\gems\ruby-debug-base19x-0.11.30.pre6\ext\ruby_debug/ruby_debug.c:530: undefined reference torealpath’
collect2: ld returned 1 exit status
make: *** [ruby_debug.so] Error 1

This seems to imply that the problem (in the preview at least) lies with
the ‘realpath’ function, which appears to be in the Ruby source rather
than Ruby-Debug. Any thoughts?

Reposted at DaniWeb
(native - installing Ruby-Debug-Base19 under Windows ... | DaniWeb); I will try
to keep this forum up to date on any solutions posted there.

Look closely. You have to say gem install ruby-debug19 –
–with-ruby-include=… That is, you must have " – " between your gem
install command and the --with-ruby-include option.