[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH v1 2/2] updated installation instructions
From: |
David Decotigny |
Subject: |
[Maposmatic-dev] [PATCH v1 2/2] updated installation instructions |
Date: |
Fri, 17 Feb 2012 22:53:33 -0800 |
This documents following final setup:
- postgis 1.5.3 from ubuntugis-unstable PPA
- mapnik 2.0.0 with libboost 1.46 from thomasjj PPA
Tested:
- CLI frontend
- maposmatic web frontend
Signed-off-by: David Decotigny <address@hidden>
---
INSTALL.lucid | 50 +++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 39 insertions(+), 11 deletions(-)
diff --git a/INSTALL.lucid b/INSTALL.lucid
index ac5ba45..f367f4c 100644
--- a/INSTALL.lucid
+++ b/INSTALL.lucid
@@ -50,6 +50,14 @@ are using. They have been tested on several x86_64 hosts.
sudo aptitude install postgresql-8.4-postgis
+ If nothing happends, you may have to check the output of
+ "apt-get policy postgresql-8.4-postgis" and adjust your apt preferences.
+ A sensible default preferences configuration file for this repository
+ could be:
+ Package: *
+ Pin: release o=LP-PPA-ubuntugis-ubuntugis-unstable
+ Pin-Priority: 700
+
c. Install PostGIS support in Postgres
sudo -u postgres \
@@ -73,6 +81,10 @@ are using. They have been tested on several x86_64 hosts.
e. Add the intarray extension for diff files support (osc)
+ NOTE: DO NOT DO THIS WITH RECENT VERSIONS OF osm2pgsql (>= r26020).
+ Since osm2pgsql r26020, external intarray is not supported
+ (http://trac.openstreetmap.org/changeset/26020).
+
sudo -u postgres \
psql \
-f /usr/share/postgresql/8.4/contrib/_int.sql \
@@ -99,7 +111,7 @@ are using. They have been tested on several x86_64 hosts.
b. Grab osm2pgsql code
svn co http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/
- # Tested revision: r22641
+ # Tested revisions: r22641 (with local intarray), r27755 (without intarray)
c. Install the build dependencies
@@ -149,15 +161,29 @@ are using. They have been tested on several x86_64 hosts.
a. Install the dependencies
+ # Base dependencyes (.7.1)
sudo apt-get build-dep python-mapnik
+ # Upgrade to libboost >= 1.41
+ sudo add-apt-repository ppa:thomasjj/backports
+ sudo aptitude update
+ sudo aptitude dist-upgrade # Or safe-upgrade if you prefer
+
+ sudo aptitude purge libboost1.40-dev
+
+ sudo aptitude install libboost1.46-dev libboost-date-time1.46-dev \
+ libboost-filesystem1.46-dev libboost-iostreams1.46-dev \
+ libboost-program-options1.46-dev libboost-python1.46-dev \
+ libboost-regex1.46-dev libboost-serialization1.46-dev \
+ libboost-system1.46-dev libboost-thread1.46-dev
+
b. Download Mapnik
- wget http://download.berlios.de/mapnik/mapnik-0.7.1.tar.bz2
+ wget http://download.berlios.de/mapnik/mapnik-2.0.0.tar.bz2
- c. Compile and install Mapnik
+ c. Compile and install Mapnik 2
- tar xvjf mapnik-0.7.1.tar.bz2
+ tar xvjf mapnik-2.0.0.tar.bz2
cd mapnik-0.7.1
python scons/scons.py configure INPUT_PLUGINS=all \
@@ -172,7 +198,7 @@ are using. They have been tested on several x86_64 hosts.
d. Check the installation
- Run a Python interpreter, and run "import mapnik". If it doesn't
+ Run a Python interpreter, and run "import mapnik2". If it doesn't
work and you didn't do a system-wide installation of Mapnik, don't
forget to set the PYTHONPATH and LD_LIBRARY_PATH environment
variables.
@@ -184,23 +210,24 @@ are using. They have been tested on several x86_64 hosts.
a. Download
- svn co http://svn.openstreetmap.org/applications/rendering/mapnik \
- mapnik-osm
- # Tested revision: r22641
+ svn co \
+ http://svn.openstreetmap.org/applications/rendering/mapnik \
+ mapnik2-osm
+ # Tested revision: r27848
b. Installation of static data
In addition to the OpenStreetMap data, some other static data are
used to render the maps (world boundaries, etc.)
- cd mapnik-osm
+ cd mapnik2-osm
sh ./get-coastlines.sh
c. Enabling unifont
In order to get correct rendering for Korean, Chineese or Japanese
character, the unifont font must be used. In order do enable it,
- edit inc/fontset-settings.xml.inc, and uncomment the following
+ edit inc/fontset-settings.xml.inc.template, and uncomment the following
line :
<Font face_name="unifont Medium" />
@@ -240,5 +267,6 @@ are using. They have been tested on several x86_64 hosts.
12. Run OCitySMap
- ./ocitysmap2-render -t "Ceci n'est pas Paris" --osmid=-943886
+ ./ocitysmap2-render -t "Ceci n'est pas Paris" --osmid=-411354 # Contern,
LU
+ ./ocitysmap2-render -t "Ceci n'est pas Paris" --osmid=-943886 #
Chevreuse, FR
--
1.7.7.3