基本的にここ
http://d.hatena.ne.jp/rosiro/20090925/p1
ubuntu10の環境のせいか、
./configure
したら
checking for bzlib.h... no
configure: error: bzlib headers not found.
と怒られた。
http://ubuntuforums.org/showthread.php?t=61502
にて解決。
要するに、
sudo apt-get install libbz2-dev
で解決。
追記:
あるいは、Synapticでzlibで検索して出た中から重要そうなやつをインストールしたらコンパイルできた