Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Philip Blen
ERROR: Failed to build gem native extension. [ reply ]  
2008-12-25 15:21
Unable to install ruby-debug - OS X 10.4

This shows the problem and solution set for documentiion.

Problem:

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

/usr/local/bin/ruby extconf.rb install ruby-debug -v 0.9.3
creating Makefile

make
sh: line 1: make: command not found


Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.9.3 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.9.3/ext/gem_make.out


$......



sudo gem install ruby-debug -v 0.10.3

0.10.3 gets the same results.

Solution:

Install Mac Xcode Tools off the Mac OS X Install Disc 1

After install of Xcode.


$ sudo gem install ruby-debug -v 0.10.3
Password:
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed linecache-0.43
Successfully installed ruby-debug-base-0.10.3
Successfully installed ruby-debug-0.10.3
3 gems installed
Installing ri documentation for linecache-0.43...
Installing ri documentation for ruby-debug-base-0.10.3...
Installing ri documentation for ruby-debug-0.10.3...
Installing RDoc documentation for linecache-0.43...
Installing RDoc documentation for ruby-debug-base-0.10.3...
Installing RDoc documentation for ruby-debug-0.10.3...
$