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/03/25 15:48] ninetutorials:tilemill [2014/03/25 16:48] (current) nine
Line 1: Line 1:
 ====== Install Tilemill on Debian Jessie (testing) ====== ====== 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.2.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>
  
- +Install dependencies for compiling tilemill:
-===== Tilemill ===== +
- +
-Install dependencies:+
 <code> <code>
 sudo aptitude install git libmapnik2-dev python-gtk2-dev libwebkit-dev libsqlite3-dev sudo aptitude install git libmapnik2-dev python-gtk2-dev libwebkit-dev libsqlite3-dev
Line 25: Line 21:
 </code> </code>
  
-in order to download tilemill:+obtain the latest version of tilemill:
 <code> <code>
-sudo aptitude install git protobuf-compiler libprotobuf-lite7 libprotobuf-dev+git clone https://github.com/mapbox/tilemill.git 
 +cd tilemill
 </code> </code>
  
-download tilemill+or the latest **release** of tilemill:
 <code> <code>
 TILEMILL_TAG="v0.10.1" TILEMILL_TAG="v0.10.1"
Line 36: Line 33:
 cd tilemill cd tilemill
 git checkout ${TILEMILL_TAG} git checkout ${TILEMILL_TAG}
 +</code>
 +
 +make command **node** available:
 +<code>
 +ln -s /usr/bin/nodejs /usr/local/bin/node
 +</code>
 +
 +compile and install tilemill:
 +<code>
 npm install npm install
 </code> </code>
 +
 +create a tilemill launch-script:
 +<code>
 +echo "#! /bin/sh
 +node /usr/local/share/tilemill/index.js" > /usr/local/bin/tilemill
 +chmod +x /usr/local/bin/tilemill
 +</code>
 +
 +
  
 ===== download data into postgis ===== ===== download data into postgis =====
Line 43: 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.1395762523.txt.gz · Last modified: 2014/03/25 15:48 by nine