08.02.08

(Resolved) Error installing merb on Ubuntu (hint: install ruby-full)

Posted in Ruby, merb at 9:32 am by Robert Horvick

While installing merb I hit the following error:

Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install merb --include-dependencies
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1

Gem files will remain installed in /var/lib/gems/1.8/gems/hpricot-0.6.161 for inspection.
Results logged to /var/lib/gems/1.8/gems/hpricot-0.6.161/ext/fast_xs/gem_make.out

The issue is that compiling extensions requires ruby1.8-dev on Ubuntu.  I installed ruby-full instead using:

> sudo aptitude install ruby-full

And was able to get through the installation without issues (selecting the “ruby” version of each dependency that required a choice).

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]