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!!
December 30th, 2007 at 1:40 pm
This was exactly my problem - thanks for the explanation