# (mandriva,eclipse) ruby debug gem installation fails

**URL:** <https://www.ruby-forum.com/t/mandriva-eclipse-ruby-debug-gem-installation-fails/166781>\
**Category:** Ruby\
**Created:** [April 29, 2009, 3:13pm UTC](https://www.ruby-forum.com/t/mandriva-eclipse-ruby-debug-gem-installation-fails/166781 "2009-04-29T15:13:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolivierld](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Post date:** [April 29, 2009, 3:13pm UTC](https://www.ruby-forum.com/t/mandriva-eclipse-ruby-debug-gem-installation-fails/166781/1 "2009-04-29T15:13:09Z")

</div>

hello,

I have a problem while installing a gem for the debugging with eclipse.  
I’m on mandriva 2009, here is the error message:

* * *

[root@localhost lolveley]# gem install ruby-debug  
Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
Building native extensions. This could take a while…  
ERROR: Error installing ruby-debug:  
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install ruby-debug  
mkmf.rb can’t find header files for ruby at /usr/lib/ruby/ruby.h

Gem files will remain installed in  
/usr/lib/ruby/gems/1.8/gems/linecache-0.43 for inspection.  
Results logged to  
/usr/lib/ruby/gems/1.8/gems/linecache-0.43/ext/gem\_make.out

* * *

do you know from where it is coming?

lolveley.

---

<div class="post-metadata">

**Author:** ![jolivierld](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Post date:** [April 29, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/mandriva-eclipse-ruby-debug-gem-installation-fails/166781/2 "2009-04-29T22:06:40Z")

</div>

Olivier L. wrote:

> ERROR: Failed to build gem native extension.
> 
> * * *
> 
> do you know from where it is coming?
> 
> lolveley.

You need the Ruby header files:  
sudo urpmi ruby-dev

-Justin

---

<div class="post-metadata">

**Author:** ![jolivierld](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Post date:** [April 29, 2009, 10:44pm UTC](https://www.ruby-forum.com/t/mandriva-eclipse-ruby-debug-gem-installation-fails/166781/3 "2009-04-29T22:44:39Z")

</div>

well, it doesn’t work.  
not exactly.

indeed, I have the package ruby-devel in the package manager, but with  
the version 1.8.xx, but what I want is a ruby-debug 1.9.xx, and with  
this ruby-debug comes ruby-devel-1.9.xx (I suppose actually).

but impossible to find ruby-devel-1.9.xx …

thanks anyway, another idea?

olivier.

---

<div class="post-metadata">

**Author:** ![jolivierld](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Post date:** [April 29, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/mandriva-eclipse-ruby-debug-gem-installation-fails/166781/4 "2009-04-29T23:04:37Z")

</div>

stop searching!

it works!  
I kept the ruby-devel-1.8.xx.rpm and installed the gem ruby-debug, and  
made some tests : all works fine.

thank you,

olivier.
