This is the main set of compilers we will need to build the packages.
apt-get install build-essential
We use the below for PEAR mail when we do mass emails and or HTML emails
apt-get install php-pear
We use the below more for Ruby on Rails applications but you never know when you want to run a SQLite DB instead of the mysql DB. also included are the header to compile the RoR.
apt-get install sqlite3 apt-get install libsqlite3-dev
We use the below again mostly for Ruby on Rails but no system is complete without XML capabilities.
apt-get install libxml2-dev
Image magick is great for generating a ton of thumbnails or converting pdfs to images for the web. Here are the libraries to get it working. You will also need this if you are going to install Ruby rmagick.
apt-get install libmagick9-dev
Updated 2010 for Ubuntu 9.x
apt-get install imagemagick apt-get install libmagick*-dev apt-get install libmagickwand-dev