From 7ed96ef0bbddd1b99a361350d97ba4f834ae65e2 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Wed, 30 Dec 2015 23:37:12 -0800 Subject: [PATCH] Add a list of packages and postgres instructions --- INSTALL.md | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 2c6ed15e..cfb6cfc4 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -20,13 +20,27 @@ Make sure that you have the requirements needed. These are - ImageMagick (http://www.imagemagick.org) -Dependencies installation example: +On Ubuntu 14.04 the dependencies can be installed with - ```shell - sudo add-apt-repository -y ppa:cartodb/cairo - sudo apt-get update - sudo apt-get install -y build-essential checkinstall pkg-config libcairo2-dev libjpeg8-dev libgif-dev - ``` +```shell +sudo apt-get update +sudo apt-get install -y make g++ pkg-config git-core \ + libgif-dev libjpeg-dev libcairo2-dev \ + libhiredis-dev redis-server \ + nodejs nodejs-legacy npm \ + postgresql-9.3-postgis-2.1 postgresql-plpython-9.3 postgresql-server-dev-9.3 +``` + +On Ubuntu 12.04 the [cartodb/cairo PPA](https://launchpad.net/~cartodb/+archive/ubuntu/cairo) may be useful. + +## PostGIS setup ## + +A `template_postgis` database is expected. One can be set up with + +```shell +createdb --owner postgres --template template0 template_postgis +psql -d template_postgis -c 'CREATE EXTENSION postgis;' +``` ## Build/install ##