[240] | 1 | .. _kernel-installation-prereq: |
---|
| 2 | |
---|
| 3 | Prerequisites |
---|
[349] | 4 | ============= |
---|
| 5 | |
---|
[404] | 6 | :Authors: Nicolas Bozon, Gérald Fenoy, Jeff McKenna, Luca Delucchi |
---|
[314] | 7 | :Last Updated: $Date: 2013-03-28 09:26:04 +0000 (Thu, 28 Mar 2013) $ |
---|
[240] | 8 | |
---|
| 9 | .. contents:: Table of Contents |
---|
| 10 | :depth: 2 |
---|
| 11 | :backlinks: top |
---|
| 12 | |
---|
| 13 | Obtaining the ZOO Kernel Source |
---|
| 14 | ------------------------------- |
---|
| 15 | |
---|
[246] | 16 | .. _svn: |
---|
| 17 | |
---|
[240] | 18 | Use the following command to get the ZOO Kernel source code through Subversion: |
---|
| 19 | |
---|
| 20 | :: |
---|
| 21 | |
---|
| 22 | svn checkout http://svn.zoo-project.org/svn/trunk zoo-project |
---|
| 23 | |
---|
| 24 | For users which get a developer account, use the following: |
---|
| 25 | |
---|
| 26 | :: |
---|
| 27 | |
---|
| 28 | sed "s:\[tunnels\]:\[tunnels\]\nzoosvn = /usr/bin/ssh -p 1046:g" -i ~/.subversion/config |
---|
| 29 | svn co svn+zoosvn://svn.zoo-project.org/var/svn/repos/trunk zoo-project |
---|
| 30 | |
---|
| 31 | The first line of the instruction above defines a specific tunnel to access the svn server through |
---|
| 32 | the SSH protocol. Indeed, the ZOO SVN server listens on the 1046 (1024+22) port rather than the default one (22). |
---|
| 33 | |
---|
| 34 | Prerequisites |
---|
| 35 | ------------- |
---|
| 36 | |
---|
| 37 | The following libraries are required on your system before you can install the ZOO Kernel: |
---|
| 38 | |
---|
| 39 | - autoconf ( http://www.gnu.org/software/autoconf/ ) |
---|
| 40 | - cgic ( http://www.boutell.com/cgic ) |
---|
| 41 | - cURL ( http://curl.haxx.se ) |
---|
| 42 | - FastCGI ( http://www.fastcgi.com ) |
---|
| 43 | - Flex & Bison ( http://flex.sourceforge.net/ http://www.gnu.org/software/bison/ ) |
---|
| 44 | - libxml2 ( http://xmlsoft.org ) |
---|
| 45 | - OpenSSL ( http://www.openssl.org ) |
---|
| 46 | - Python ( http://www.python.org ) |
---|
| 47 | |
---|
| 48 | Optional libraries include: |
---|
| 49 | |
---|
[404] | 50 | - MapServer (optional for WMS, WFS and WCS output) ( http://mapserver.org ) |
---|
[240] | 51 | - PHP Embedded (optional) ( http://www.php.net ) |
---|
| 52 | - Java SDK (optional) ( http://java.sun.com ) |
---|
| 53 | - SpiderMonkey (optional) ( http://www.mozilla.org/js/spidermonkey/ ) |
---|
| 54 | |
---|
| 55 | Compile libcgic |
---|
| 56 | --------------- |
---|
| 57 | |
---|
| 58 | The first step is to compile libcgic from the ``zoo-project/thirds`` directory. For such a task, please use |
---|
| 59 | the following command: |
---|
| 60 | |
---|
| 61 | :: |
---|
| 62 | |
---|
| 63 | cd thirds/cgic206 |
---|
| 64 | make |
---|
| 65 | |
---|
| 66 | Make sure that a ``libcgic.a`` is created in your ``zoo-project/thirds/cgic206`` directory. If yes, then |
---|
| 67 | you can go to the next step. |
---|
| 68 | |
---|
| 69 | On Windows, rather than using the make command, please use: |
---|
| 70 | |
---|
| 71 | :: |
---|
| 72 | |
---|
| 73 | nmake /f makefile.vc. |
---|
| 74 | |
---|
| 75 | .. warning:: |
---|
| 76 | If you don't compile libcgic first, and try to compile the ZOO Kernel, you will get an error such as *cannot find -lcgic* |
---|