User Tools

Site Tools


tutorials:tilemill

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:tilemill [2014/02/19 09:13] ninetutorials:tilemill [2014/03/25 16:48] (current) nine
Line 1: Line 1:
-====== Install Tilemill on Debian ======+====== Install Tilemill on Debian Jessie (testing) ======
  
-===== dependencies =====+Tutorial modified from: http://felix.delattre.de/weblog/2014/03/02/how-to-install-tilemill-on-debian-jessie-testing
  
-  * Mapnik v2.3.0 +===== Tilemill =====
-  * Node.js v0.10.x or v0.8.x +
-  * Protobuf: libprotobuf-lite and protoc+
  
 +Install dependencies:
 <code> <code>
-sudo aptitude install libprotobuf-lite7 libprotoc7+sudo aptitude install nodejs npm libmapnik2.2 mapnik-utils postgresql-9.3 postgresql-server-dev-9.3 postgresql-contrib-9.3 postgresql-9.3-postgis-2.1 imposm
 </code> </code>
  
-===== node-js ===== +Install dependencies for compiling tilemill:
- +
- +
-node-js installieren \\ +
-am besten vom git-repository, da die debian-packages teilweise veraltet sind+
 <code> <code>
-git clone https://github.com/joyent/node.git +sudo aptitude install git libmapnik2-dev python-gtk2-dev libwebkit-dev libsqlite3-dev
-cd node +
-git checkout v0.10.25 #Try checking nodejs.org for what the stable version is +
-./configure && make +
-sudo make install+
 </code> </code>
  
- +go to tilemill install directory, e.g.
-===== mapnik 2.3.x ===== +
- +
-install proj.4 for better threading support+
 <code> <code>
-# Or, install proj4 latest and then mapnik from source: +cd /usr/local/share/  
-wget http://download.osgeo.org/proj/proj-datumgrid-1.5.zip +sudo su
-# we use trunk instead for better threading support +
-svn co http://svn.osgeo.org/metacrs/proj/trunk/proj proj-trunk # at the time pre-release 4.8.0 +
-cd proj-trunk/nad +
-unzip -o ../../proj-datumgrid-1.5.zip +
-cd .. && ./configure +
-make +
-sudo make install+
 </code> </code>
  
-install latest boost-libraries from source:+obtain the latest version of tilemill:
 <code> <code>
-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 +
-./bootstrap.sh +
-./b2 stage toolset=gcc --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 -sICU_PATH=/usr/ --with-program_options --with-system link=shared +
-sudo ./b2 install toolset=gcc --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 -sICU_PATH=/usr/ --with-program_options --with-system link=shared -d0 +
-sudo ldconfig && cd ../+
 </code> </code>
  
-or download the debian packages, if available:+or the latest **release** of tilemill:
 <code> <code>
-sudo aptitude install \ +TILEMILL_TAG="v0.10.1" 
-  libboost-filesystem1.54.0 \ +git clone https://github.com/mapbox/tilemill.git 
-  libboost-locale1.54.0 \ +cd tilemill 
-  libboost-program-options1.54.0 \ +git checkout ${TILEMILL_TAG}
-  libboost-python1.54.0 \ +
-  libboost-regex1.54.0 \ +
-  libboost-thread1.54.0 +
 </code> </code>
  
-link:  +make command **node** available:
-  https://github.com/mapnik/mapnik/wiki/DebianInstallation +
-  https://gist.github.com/springmeyer/2164897 +
 <code> <code>
-sudo aptitude install \ +ln -s /usr/bin/nodejs /usr/local/bin/node
-  g++ cpp \ +
-  libicu-dev libicu48 \ +
-  python-dev \ +
-  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 \ +
-  ttf-dejavu ttf-dejavu-core ttf-dejavu-extra ttf-unifont \ +
-  postgresql postgresql-server-dev-9.1 postgresql-contrib \ +
-  libgdal1-dev python-gdal \ +
-  postgresql-9.1-postgis libsqlite3-dev +
-  subversion build-essential python-nose+
 </code> </code>
  
-mapnik: +compile and install tilemill:
 <code> <code>
-wget http://mapnik.s3.amazonaws.com/dist/v2.2.0/mapnik-v2.2.0.tar.bz2 +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://github.com/mapnik/mapnik/issues/1933 +
-make  +
-sudo make install+
 </code> </code>
  
- +create a tilemill launch-script:
-test the installation+
 <code> <code>
-make test+echo "#! /bin/sh 
 +node /usr/local/share/tilemill/index.js" > /usr/local/bin/tilemill 
 +chmod +x /usr/local/bin/tilemill
 </code> </code>
  
-reboot 
  
-===== Tilemill ===== 
- 
-Desktop windowing UI: 
-<code> 
-sudo aptitude install libwebkit-dev 
-</code> 
- 
-in order to download tilemill: 
-<code> 
-sudo aptitude install git protobuf-compiler libprotobuf-lite7 libprotobuf-dev 
-</code> 
- 
-download tilemill 
-<code> 
-TILEMILL_TAG="v0.10.1" 
-git clone https://github.com/mapbox/tilemill.git 
-cd tilemill 
-git checkout ${TILEMILL_TAG} 
-npm install 
-</code> 
  
 ===== download data into postgis ===== ===== download data into postgis =====
Line 138: Line 58:
 <code> <code>
 sudo -u postgres createdb -U postgres tilemill_austria sudo -u postgres createdb -U postgres tilemill_austria
-sudo -u postgres createlang plpgsql tilemill_austria +sudo -u postgres psql -postgres -tilemill_austria -c "create extension postgis;"
-sudo -postgres psql tilemill_austria -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql +
-sudo -u postgres psql tilemill_austria -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql+
 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 'tilemill';" sudo -u postgres psql -U postgres -c "ALTER ROLE tilemill WITH PASSWORD 'tilemill';"
tutorials/tilemill.1392801198.txt.gz · Last modified: 2014/02/19 09:13 by nine