tutorials:tilemill
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:tilemill [2014/02/19 09:46] – nine | tutorials:tilemill [2014/03/25 16:48] (current) – nine | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Install Tilemill on Debian ====== | + | ====== Install Tilemill on Debian |
- | ===== dependencies ===== | + | Tutorial modified from: http:// |
- | * Mapnik v2.3.0 | + | ===== Tilemill ===== |
- | * Node.js v0.10.x or v0.8.x | + | |
- | * Protobuf: libprotobuf-lite and protoc | + | |
+ | Install dependencies: | ||
< | < | ||
- | sudo aptitude install | + | sudo aptitude install |
</ | </ | ||
- | ===== node-js ===== | + | Install dependencies for compiling tilemill: |
- | + | ||
- | + | ||
- | node-js installieren \\ | + | |
- | am besten vom git-repository, | + | |
< | < | ||
- | git clone https:// | + | sudo aptitude |
- | cd node | + | |
- | git checkout v0.10.25 #Try checking nodejs.org for what the stable version is | + | |
- | ./configure && make | + | |
- | sudo make install | + | |
</ | </ | ||
- | + | go to tilemill install directory, e.g. | |
- | ===== mapnik 2.3.x ===== | + | |
- | + | ||
- | install proj.4 for better threading support | + | |
< | < | ||
- | # Or, install proj4 latest and then mapnik from source: | + | cd /usr/local/share/ |
- | wget http:// | + | sudo su |
- | # we use trunk instead for better threading support | + | |
- | svn co http:// | + | |
- | cd proj-trunk/nad | + | |
- | unzip -o ../../proj-datumgrid-1.5.zip | + | |
- | cd .. && ./configure | + | |
- | make | + | |
- | sudo make install | + | |
</ | </ | ||
- | install | + | obtain the latest |
< | < | ||
- | wget http://mapnik.s3.amazonaws.com/deps/boost_1_54_0.tar.bz2 | + | git clone https://github.com/mapbox/tilemill.git |
- | tar xjvf boost_1_54_0.tar.bz2 | + | cd tilemill |
- | cd boost_1_54_0 | + | |
- | ./ | + | |
- | ./b2 stage toolset=gcc --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 -sICU_PATH=/ | + | |
- | sudo ./b2 install toolset=gcc --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 -sICU_PATH=/ | + | |
- | sudo ldconfig && cd ../ | + | |
</ | </ | ||
- | or download | + | or the latest **release** of tilemill: |
< | < | ||
- | sudo aptitude install \ | + | TILEMILL_TAG=" |
- | libboost-filesystem1.54.0 libboost-filesystem1.54-dev \ | + | git clone https:// |
- | | + | cd tilemill |
- | | + | git checkout ${TILEMILL_TAG} |
- | | + | |
- | libboost-python1.54.0 libboost-python1.54-dev \ | + | |
- | libboost-regex1.54.0 libboost-regex1.54-dev \ | + | |
- | libboost-system1.54-dev \ | + | |
- | libboost-thread1.54.0 libboost-thread1.54-dev | + | |
</ | </ | ||
- | add the latest postgis repository: | + | make command |
- | | + | |
- | | + | |
- | deb http:// | + | |
- | </ | + | |
- | | + | |
- | wget --quiet -O - https:// | + | |
- | sudo aptitude update | + | |
- | </ | + | |
- | + | ||
- | link: | + | |
- | * https:// | + | |
- | | + | |
< | < | ||
- | sudo aptitude install \ | + | ln -s / |
- | g++ cpp \ | + | |
- | libicu-dev libicu48 \ | + | |
- | python-dev \ | + | |
- | libxml2 libxml2-dev \ | + | |
- | libfreetype6 libfreetype6-dev \ | + | |
- | libjpeg8 libjpeg8-dev \ | + | |
- | libpng12-0 libpng12-dev \ | + | |
- | libtiff5 libtiff5-dev \ | + | |
- | libltdl7 libltdl-dev \ | + | |
- | libproj0 libproj-dev \ | + | |
- | libcairo2 libcairo2-dev python-cairo python-cairo-dev \ | + | |
- | libcairomm-1.0-1 libcairomm-1.0-dev \ | + | |
- | ttf-dejavu ttf-dejavu-core ttf-dejavu-extra ttf-unifont \ | + | |
- | postgresql postgresql-server-dev-9.3 postgresql-contrib \ | + | |
- | libgdal1-dev python-gdal \ | + | |
- | postgresql-9.3-postgis-2.1 libsqlite3-dev | + | |
- | subversion build-essential python-nose | + | |
</ | </ | ||
- | mapnik: | + | compile and install tilemill: |
< | < | ||
- | wget http:// | + | npm install |
- | tar xf mapnik-v2.2.0.tar.bz2 | + | |
- | cd mapnik-v2.2.0 | + | |
- | ./configure INPUT_PLUGINS=all # build with all plugins, see also: https:// | + | |
- | make | + | |
- | sudo make install | + | |
</ | </ | ||
- | + | create a tilemill launch-script: | |
- | test the installation | + | |
< | < | ||
- | make test | + | echo "#! /bin/sh |
+ | node / | ||
+ | chmod +x / | ||
</ | </ | ||
- | reboot | ||
- | ===== Tilemill ===== | ||
- | |||
- | Desktop windowing UI: | ||
- | < | ||
- | sudo aptitude install libwebkit-dev | ||
- | </ | ||
- | |||
- | in order to download tilemill: | ||
- | < | ||
- | sudo aptitude install git protobuf-compiler libprotobuf-lite7 libprotobuf-dev | ||
- | </ | ||
- | |||
- | download tilemill | ||
- | < | ||
- | TILEMILL_TAG=" | ||
- | git clone https:// | ||
- | cd tilemill | ||
- | git checkout ${TILEMILL_TAG} | ||
- | npm install | ||
- | </ | ||
===== download data into postgis ===== | ===== download data into postgis ===== | ||
Line 143: | Line 58: | ||
< | < | ||
sudo -u postgres createdb -U postgres tilemill_austria | sudo -u postgres createdb -U postgres tilemill_austria | ||
- | sudo -u postgres | + | sudo -u postgres |
- | sudo -u postgres | + | |
- | sudo -u postgres psql tilemill_austria -f / | + | |
sudo -u postgres createuser -Upostgres --no-superuser --no-createdb --no-createrole tilemill | sudo -u postgres createuser -Upostgres --no-superuser --no-createdb --no-createrole tilemill | ||
sudo -u postgres psql -U postgres -c "ALTER ROLE tilemill WITH PASSWORD ' | sudo -u postgres psql -U postgres -c "ALTER ROLE tilemill WITH PASSWORD ' |
tutorials/tilemill.1392803171.txt.gz · Last modified: 2014/02/19 09:46 by nine