On a Debian system supporting Apt, this can be done with:
```
sudo apt-get install python-pip postgresql python-virtualenv nginx \
- virtualenvwrapper git libxml2-dev p7zip-full \
+ virtualenvwrapper git libxml2-dev p7zip-full libffi-dev \
postgresql-server-dev-9.1 libxslt1-dev \
libmemcached-dev python-dev rabbitmq-server \
cmake libpng-dev libjpeg-dev libgtk2.0-dev \
apt-get update
apt-get upgrade -y
-apt-get install -y python-pip postgresql python-virtualenv \
+apt-get install -y python-pip postgresql python-virtualenv libffi-dev \
git nginx postgresql-server-dev-9.1 libxslt1-dev \
libxml2-dev libmemcached-dev python-dev rabbitmq-server \
p7zip-full pdf2htmlex