(Note: This was previously posted at http://www.ruby-forum.com/topic/3426459#new , but received no responses after four days.)
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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby193/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
extconf.rb:16:in `block in <main>': break from proc-closure (LocalJumpError)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `call'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `create_makefile_w
ith_core'
from extconf.rb:32:in `<main>'
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 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
to `realpath'
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. 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.