Unable to install ruby-debug

$: 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

Environment: mac os x 10.6
RubyGems Environment:

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

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8

I have tried to install on older version (0.7.5), but no luck.

Thanks in advance for your help!

On May 5, 12:59 am, “Parv G.” [email protected] wrote:

/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

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?

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