# Unable to install ruby-debug

**URL:** <https://rubytalk.org/t/unable-to-install-ruby-debug/58403>\
**Category:** ruby-talk\
**Created:** [5 May 2010 03:59 UTC](https://rubytalk.org/t/unable-to-install-ruby-debug/58403 "2010-05-05T03:59:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parv\_G](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@Parv\_G](https://rubytalk.org/u/Parv_G)\
**Post date:** [5 May 2010 03:59 UTC](https://rubytalk.org/t/unable-to-install-ruby-debug/58403/1 "2010-05-05T03:59:25Z")

</div>

$: sudo gem install ruby-debug  
Building native extensions. This could take a while...  
ERROR: Error installing ruby-debug:  
&nbsp;&nbsp;ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby  
mkrf\_conf.rb  
Building native extensions. This could take a while...

Gem files will remain installed in  
/Library/Ruby/Gems/1.8/gems/ruby-debug for inspection.  
Results logged to  
/Library/Ruby/Gems/1.8/gems/ruby-debug/ext/gem\_make.out

Environment: mac os x 10.6  
RubyGems Environment:  
&nbsp;&nbsp;- RUBYGEMS VERSION: 1.3.6  
&nbsp;&nbsp;- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72)  
[universal-darwin10.0]  
&nbsp;&nbsp;- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8  
&nbsp;&nbsp;- RUBY EXECUTABLE:  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby  
&nbsp;&nbsp;- EXECUTABLE DIRECTORY: /usr/bin  
&nbsp;&nbsp;- RUBYGEMS PLATFORMS:  
&nbsp;&nbsp;&nbsp;&nbsp;- ruby  
&nbsp;&nbsp;&nbsp;&nbsp;- universal-darwin-10  
&nbsp;&nbsp;- GEM PATHS:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- /Library/Ruby/Gems/1.8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- /Library/Ruby/Gems/1.8/gems

> **···**
>
> -  
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8  
> &nbsp;&nbsp;- GEM CONFIGURATION:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :update\_sources =\> true  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :verbose =\> true  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :benchmark =\> false  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :backtrace =\> false  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :bulk\_threshold =\> 1000  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :gempath =\> "/Library/Ruby/Gems/1.8/gems"  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :sources =\> ["[http://gems.rubyforge.org/](http://gems.rubyforge.org/)",  
> "[http://gems.github.com](http://gems.github.com)"]  
> &nbsp;&nbsp;- REMOTE SOURCES:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.rubyforge.org/](http://gems.rubyforge.org/)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.github.com](http://gems.github.com)
> 
> I have tried to install on older version (0.7.5), but no luck.
> 
> Thanks in advance for your help!  
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Luis\_Lavena1](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Luis\_Lavena1](https://rubytalk.org/u/Luis_Lavena1)\
**Post date:** [5 May 2010 05:55 UTC](https://rubytalk.org/t/unable-to-install-ruby-debug/58403/2 "2010-05-05T05:55:11Z")

</div>

Please paste the contents of gem\_make.out indicated above.

It might be possible that Xcode hasn't been installed in your Snow  
Leopard installation?

> **···**
>
> On May 5, 12:59 am, "Parv G." \<ghotr...@yahoo.com\> wrote:
> 
> > $: sudo gem install ruby-debug  
> > Building native extensions. This could take a while...  
> > ERROR: Error installing ruby-debug:  
> > ERROR: Failed to build gem native extension.
> > 
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby  
> > mkrf\_conf.rb  
> > Building native extensions. This could take a while...
> > 
> > Gem files will remain installed in  
> > /Library/Ruby/Gems/1.8/gems/ruby-debug for inspection.  
> > Results logged to  
> > /Library/Ruby/Gems/1.8/gems/ruby-debug/ext/gem\_make.out
> 
> --  
> Luis Lavena

---

<div class="post-metadata">

**Author:** ![Parv\_G](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@Parv\_G](https://rubytalk.org/u/Parv_G)\
**Post date:** [5 May 2010 12:29 UTC](https://rubytalk.org/t/unable-to-install-ruby-debug/58403/3 "2010-05-05T12:29:54Z")

</div>

Thanks for the reply, here it is:

$ cat  
/Library/Ruby/Gems/1.8/gems/ruby-debug-base-0.10.3/ext/gem\_make.out  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby  
extconf.rb  
mkmf.rb can't find header files for ruby at  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
