tutorials:tilemill
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorials:tilemill [2013/11/03 22:01] – 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.21 #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 ../ | + | |
| </ | </ | ||
| - | link: | + | or the latest **release** of tilemill: | 
| - |    | + | |
| - |    | + | |
| < | < | ||
| - | sudo aptitude install \ | + | TILEMILL_TAG=" | 
| - | g++ cpp \ | + | git clone https:// | 
| - | libicu-dev libicu48 \ | + | cd tilemill | 
| - | python-dev \ | + | git checkout ${TILEMILL_TAG} | 
| - | libboost-system-dev \ | + | |
| - | libboost-filesystem-dev \ | + | |
| - | libboost-iostreams-dev \ | + | |
| - | libboost-thread-dev \ | + | |
| - | libboost-python-dev \ | + | |
| - | libboost-program-options-dev \ | + | |
| - | libboost-regex-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 \ | + | |
| - |    | + | |
| - | postgresql postgresql-server-dev-9.1 postgresql-contrib \ | + | |
| - |    | + | |
| - |   postgresql-9.1-postgis libsqlite3-dev  | + | |
| - |    | + | |
| </ | </ | ||
| - | mapnik: | + | make command **node** available: | 
| < | < | ||
| - | wget http:// | + | ln -s /usr/bin/nodejs  | 
| - | tar xf mapnik-v2.2.0.tar.bz2 | + | |
| - | cd mapnik-v2.2.0 | + | |
| - | ./configure INPUT_PLUGINS=all # build with all plugins, see also: https://github.com/mapnik/mapnik/issues/1933 | + | |
| - | make | + | |
| - | sudo make install | + | |
| </ | </ | ||
| - | + | compile and install tilemill: | |
| - | test the installation | + | |
| < | < | ||
| - | make test | + | npm install | 
| </ | </ | ||
| - | reboot | + | create a tilemill launch-script: | 
| - | + | ||
| - | ===== Tilemill ===== | + | |
| - | + | ||
| - | Desktop windowing UI: | + | |
| < | < | ||
| - | sudo aptitude install libwebkit-dev | + | echo "#! /bin/sh | 
| + | node / | ||
| + | chmod +x / | ||
| </ | </ | ||
| - | 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 ===== | ||
| < | < | ||
| - | 10032   | + | sudo -u postgres createdb -U postgres tilemill_austria | 
| - | 10033   | + | sudo -u postgres  | 
| - | 10034  sudo -u postgres  | + | sudo -u postgres createuser -Upostgres --no-superuser --no-createdb --no-createrole tilemill | 
| - | 10035  sudo -u postgres psql tilemill_austria -f / | + | sudo -u postgres psql -U postgres -c "ALTER ROLE tilemill WITH PASSWORD ' | 
| - | 10036   | + | |
| - | 10037   | + | |
| # tabellen rechte fixen | # tabellen rechte fixen | ||
| - | 10039   | + | sudo -u postgres psql tilemill_austria -c "ALTER TABLE geometry_columns OWNER TO tilemill"; | 
| - | 10040   | + | sudo -u postgres psql tilemill_austria -c "ALTER TABLE spatial_ref_sys OWNER TO tilemill"; | 
| - | 10043   | + | sudo -u postgres psql tilemill_austria -c "ALTER TABLE geography_columns OWNER TO tilemill"; | 
| # daten einspielen | # daten einspielen | ||
tutorials/tilemill.1383516087.txt.gz · Last modified: 2013/11/03 22:01 by nine