1 | .. _kernel-installation-prereq: |
---|
2 | |
---|
3 | Prerequisites |
---|
4 | ============= |
---|
5 | |
---|
6 | :Authors: Nicolas Bozon, Gérald Fenoy, Jeff McKenna |
---|
7 | :Last Updated: $Date: 2011-08-11 17:07:38 +0000 (Thu, 11 Aug 2011) $ |
---|
8 | |
---|
9 | .. contents:: Table of Contents |
---|
10 | :depth: 2 |
---|
11 | :backlinks: top |
---|
12 | |
---|
13 | Obtaining the ZOO Kernel Source |
---|
14 | ------------------------------- |
---|
15 | |
---|
16 | .. _svn: |
---|
17 | |
---|
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 | |
---|
50 | - PHP Embedded (optional) ( http://www.php.net ) |
---|
51 | - Java SDK (optional) ( http://java.sun.com ) |
---|
52 | - SpiderMonkey (optional) ( http://www.mozilla.org/js/spidermonkey/ ) |
---|
53 | |
---|
54 | Compile libcgic |
---|
55 | --------------- |
---|
56 | |
---|
57 | The first step is to compile libcgic from the ``zoo-project/thirds`` directory. For such a task, please use |
---|
58 | the following command: |
---|
59 | |
---|
60 | :: |
---|
61 | |
---|
62 | cd thirds/cgic206 |
---|
63 | make |
---|
64 | |
---|
65 | Make sure that a ``libcgic.a`` is created in your ``zoo-project/thirds/cgic206`` directory. If yes, then |
---|
66 | you can go to the next step. |
---|
67 | |
---|
68 | On Windows, rather than using the make command, please use: |
---|
69 | |
---|
70 | :: |
---|
71 | |
---|
72 | nmake /f makefile.vc. |
---|
73 | |
---|
74 | .. warning:: |
---|
75 | If you don't compile libcgic first, and try to compile the ZOO Kernel, you will get an error such as *cannot find -lcgic* |
---|