Can't install Ruby-debug on Mac OS Leopard


I'm currently gettng the following error attempt to install the debugger using: 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 extconf.rb
can't find header files for ruby.

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/linecache-0.43 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/linecache-0.43/ext/gem_make.out

Comment actions Permalink

Do you have the OS X Developer tools installed? They are on the Leopard DVD in additional packages, if I remember correctly.

They contain the compiler the gem build process needs.


Comment actions Permalink

Thanks, I managed to install the Xcode Tools package from the Leopard DVD under Optional Installs / Xcode Tools. After that I was able to successfully install ruby debugger from my terminal window running sudo gem install ruby-debug and then the rubymine debug ide.


Please sign in to leave a comment.