The current wiki says you need:
sudo apt-get install libcairo2-dev libnetpbm10-dev netpbm \
libpng12-dev libjpeg-dev python-numpy \
python-pyfits python-dev zlib1g-devHowever, on a bare Ubuntu install this will fail in two areas: you also need the cfitsio-dev and swig packages. Once these are installed, you're cooking with charcoal. I think it may help a few people if these are included in the apt-get list, i.e.
sudo apt-get install libcairo2-dev libnetpbm10-dev netpbm \
libpng12-dev libjpeg-dev python-numpy \
python-pyfits python-dev zlib1g-dev \
swig cfitsio-dev
Cheers,
Josh