Pesky “mkmf” load error in Ruby on Ubuntu

If your getting an “mkmf (LoadError)” when trying to install a gem like this one;

$ sudo gem install mongrel
Building native extensions. This could take a while…
extconf.rb:8:in `require’: no such file to load — mkmf (LoadError)

You probably just need to install dev files for Ruby. The standard apt-get install ruby does not install everything you need, it has something to do with the Debian Packaging Guidelines. But don’t worry this is a simple fix.

$ sudo apt-get install ruby1.8-dev

And that “should” do it. Good luck!!

This entry was posted on Thursday, April 5th, 2007 at 11:14 am and is filed under Rails. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

 

One Response to “Pesky “mkmf” load error in Ruby on Ubuntu”

  1. Logan Koester Says:

    This was exactly my problem - thanks for the explanation :-)

Leave a Reply