no such file to load — mkmf

Journal entry
January 24, 2006

While checking out Scott Baron’s coverage-tool for Ruby, insurance, I ran into a minor issue on my - by now - fairly beat up Debian installation.

jcop@mental:~$ sudo gem install insurance
Attempting local installation of 'insurance'
Local gem file not found: insurance*.gem
Attempting remote installation of 'insurance'
Updating Gem source index for: http://gems.rubyforge.org
Building native extensions.  This could take a while...
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
        from extconf.rb:1

Thankfully, Google led me to the answer on RubyForge. For some reason, mkmf.rb is part of the ruby1.8-dev package, and initially I hadn’t installed that since it is described as

Header files for compiling extension modules for the Ruby 1.8

Ah well. A quick

sudo apt-get install ruby1.8-dev

and everything trotted along happily after that.

Categories
Selling out
Did you know?
Jakob is an independent web application developer who builds awesome stuff for the web. You can hire him to build awesome stuff for you.

Comments and Trackbacks

Dominic Espinosa February 21, 2006

Actually, I had the same problem, and Google led me to...this article! So thanks for posting this, it solved my problem as well.

choonkeat March 17, 2006

yea. thanks for the search friendly entry. saved me hours.

Peter April 3, 2006

Me too. Google and real information make a great team!

Commenting on this entry has been closed.