ubuntu7.04にmongrelインストールでエラー

rubyやらrailsやらgemやらをSynapticでサックリインストールして、引き続きmongrelのインストールを試みる。Synapticの検索で出てこなかったのでコマンドラインから以下を実行。

sudo gem install mongrel

mongrel 1.0.1 (ruby)、fastthread 1.0 (ruby)と選んだところで以下のエラー発生。

Building native extensions. This could take a while...
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1

ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /var/lib/gems/1.8/gems/fastthread-1.0 for inspection.

調べてみたらこちらに解決策が。以下を実行

sudo apt-get ruby1.8-dev

で、もいっかいインストールコマンドを叩いたらうまくいったみたいです。後々のためにメモ