Last active
August 29, 2015 13:56
-
-
Save bmoregeo/8927619 to your computer and use it in GitHub Desktop.
Install CartoDB on Ubuntu 11.10. Use https://github.com/lordlinus/cartodb as a template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install PostGIS | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list' | |
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install Postgresql-9.3-postgis postgresql-contrib | |
sudo -u postgres psql | |
# > CREATE EXTENSION adminpack; | |
# > \q | |
exit | |
sudo sh -c 'echo host all all 0.0.0.0/0 trust >> /etc/postgresql/9.3/main/pg_hba.conf' | |
nano /etc/postgresql/9.3/main/postgresql.conf | |
# Update listen_addresses | |
# listen_addresses='*' | |
sudo service postgresql restart | |
# Install Mapnik | |
sudo add-apt-repository ppa:mapnik/v2.2.0 | |
sudo apt-get update | |
sudo apt-get install libmapnik libmapnik-dev mapnik-utils python-mapnik | |
# Install Requirements for CartoDB | |
apt-get install g++ make checkinstall build-essential htop git unp zip gdal-bin \ | |
libgdal1-dev libjson0 python-simplejson libjson0-dev proj-bin proj-data libproj-dev \ | |
curl redis-server python-pip python-dev python-gdal libmapnik-dev \ | |
libxslt-dev libgeos-c1 libgeos-dev pgbouncer varnish git | |
# Install Node | |
sudo apt-get install git-core curl build-essential openssl libssl-dev | |
git clone https://github.com/joyent/node.git | |
cd node | |
# git tag # Gives you a list of released versions | |
# git checkout v0.4.12 | |
./configure | |
make | |
sudo make install | |
# Install CartoDB | |
git clone --recursive https://github.com/CartoDB/cartodb20.git | |
# Install CartoDB SQL API | |
git clone git://github.com/CartoDB/CartoDB-SQL-API.git | |
cd CartoDB-SQL-API | |
git checkout master | |
npm install | |
# Link missing sigc++ config | |
cd /usr/include/sigc++-2.0 | |
sudo ln -s /usr/lib/x86_64-linux-gnu/sigc++-2.0/include/sigc++config.h . | |
# Install Windshaft-cartodb | |
git clone git://github.com/CartoDB/Windshaft-cartodb.git | |
cd Windshaft-cartodb | |
git checkout master | |
npm install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment