# Installing Ruby-Debug-Base19 under Windows 7

**URL:** <https://www.ruby-forum.com/t/installing-ruby-debug-base19-under-windows-7/215726>\
**Category:** Ruby\
**Created:** [January 13, 2012, 8:11pm UTC](https://www.ruby-forum.com/t/installing-ruby-debug-base19-under-windows-7/215726 "2012-01-13T20:11:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 13, 2012, 8:11pm UTC](https://www.ruby-forum.com/t/installing-ruby-debug-base19-under-windows-7/215726/1 "2012-01-13T20:11:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![joseph\_o](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ec8ea/32.png) [@joseph\_o](https://www.ruby-forum.com/u/joseph_o)\
**Post date:** [January 14, 2012, 8:56am UTC](https://www.ruby-forum.com/t/installing-ruby-debug-base19-under-windows-7/215726/2 "2012-01-14T08:56:24Z")

</div>

## 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 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. Any thoughts?

---

<div class="post-metadata">

**Author:** ![joseph\_o](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ec8ea/32.png) [@joseph\_o](https://www.ruby-forum.com/u/joseph_o)\
**Post date:** [January 16, 2012, 7:52pm UTC](https://www.ruby-forum.com/t/installing-ruby-debug-base19-under-windows-7/215726/3 "2012-01-16T19:52:03Z")

</div>

Reposted at DaniWeb  
([native - installing Ruby-Debug-Base19 under Windows ... | DaniWeb](http://www.daniweb.com/web-development/ruby/threads/406921)); I will try  
to keep this forum up to date on any solutions posted there.

---

<div class="post-metadata">

**Author:** ![joseph\_o](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ec8ea/32.png) [@joseph\_o](https://www.ruby-forum.com/u/joseph_o)\
**Post date:** [March 23, 2012, 12:51am UTC](https://www.ruby-forum.com/t/installing-ruby-debug-base19-under-windows-7/215726/4 "2012-03-23T00:51:55Z")

</div>

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.
