|
Revision 74, 1.1 kB
(checked in by pavlenko, 3 years ago)
|
|
small correction
|
| Line | |
|---|
| 1 | INSTALLATION INSTRUCTIONS |
|---|
| 2 | |
|---|
| 3 | Prerequisites |
|---|
| 4 | First of all you will have to install 'scons'. See scons user guide on how to get started. |
|---|
| 5 | |
|---|
| 6 | Mapnik is relying on a number of boost libraries (filesystem, python, regex, spirit etc). You can download the latest release (1.32.0) or grab a CVS snapshot from http://boost.org. You don't need to build anything, just unzip the source into read/write location on your disk. |
|---|
| 7 | |
|---|
| 8 | The same requirements apply for AGG library (available from http://www.antigrain.com) |
|---|
| 9 | |
|---|
| 10 | Other dependencies include: |
|---|
| 11 | 1. libltdl (dynamic linking) |
|---|
| 12 | 2. libz |
|---|
| 13 | 3. libpng |
|---|
| 14 | 4. libjpeg |
|---|
| 15 | 5. freetype2 |
|---|
| 16 | 6. postgresql (+postgis) - if you want to build postgis datasource |
|---|
| 17 | |
|---|
| 18 | Building |
|---|
| 19 | Once you satisfy all dependencies you can build mapnik by issuing the following command: |
|---|
| 20 | |
|---|
| 21 | :/> scons DATASOURCES=all PREFIX=/where/to/install install |
|---|
| 22 | |
|---|
| 23 | This should compile, link and install all relevant libraries/headers in PREFIX. |
|---|
| 24 | |
|---|
| 25 | By default release versions are built, but you can specify "debug=yes" to build debug versions. At this time only GCC toolkit is supported and you'll have to modify SConstruct/SConscript files if you're planning to use something else. |
|---|