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