Error when installing Mongrel from gem
I received the following error when installing Mongrel from the gem repository:
[email protected]:$ sudo gem install mongrel
Updating metadata for 281 gems from http://gems.rubyforge.org
complete
Building native extensions. This could take a while...
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install mongrel
extconf.rb:1:in require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
The fix is to install the ruby development package:
sudo apt-get install ruby1.8-dev