[130] | 1 | .. _kernel-installation: |
---|
| 2 | |
---|
[136] | 3 | Installation |
---|
| 4 | ============ |
---|
[130] | 5 | |
---|
| 6 | .. contents:: Table of Contents |
---|
| 7 | :depth: 4 |
---|
| 8 | :backlinks: top |
---|
| 9 | |
---|
| 10 | This page provides documentation on how to compile then install ZOO-Kernel on Unix and Win32 platforms. |
---|
| 11 | |
---|
| 12 | Unix |
---|
| 13 | ---- |
---|
| 14 | |
---|
| 15 | For Unix users, ZOO-Kernel comes with a GNU autoconf "configure" script that should take care of (hopefully!) |
---|
| 16 | all compilation issues for you. |
---|
| 17 | |
---|
| 18 | The configure script won't work on Windows. See section WIN32 for details on compiling on Windows systems. |
---|
| 19 | |
---|
| 20 | For the impatient |
---|
| 21 | ***************** |
---|
| 22 | |
---|
| 23 | To build zoo_loader.cgi CGI program with the default options, go to the default options, go to the directory |
---|
| 24 | where you extracted the ZOO-Kernel source code package and use the following command: |
---|
| 25 | |
---|
| 26 | :: |
---|
| 27 | |
---|
| 28 | $ cd zoo-kernel |
---|
| 29 | $ ./configure |
---|
| 30 | $ make |
---|
| 31 | |
---|
| 32 | Unless something went wrong, you should have executables in the current directory for the zoo_loader.cgi |
---|
| 33 | CGI program. You can copy the zoo_loader.cgi program and the main.cfg file to your HTTP server's CGI |
---|
| 34 | directory and start using it. |
---|
| 35 | |
---|
| 36 | At this step your ZOO-Kernel should work. Nevertheless, don't forget to correct the main.cfg settings |
---|
| 37 | to set tmpPath and tmpUrl to fit your web server configuration. |
---|
| 38 | |
---|
| 39 | Configure Options |
---|
| 40 | ***************** |
---|
| 41 | |
---|
| 42 | Here is the list of available options as returned by *./configure --help*: |
---|
| 43 | |
---|
| 44 | :: |
---|
| 45 | |
---|
| 46 | --with-gdal-config=FILE specify an alternative gdal-config file |
---|
| 47 | --with-xml2config=FILE specify an alternative xml2-config file |
---|
| 48 | --with-python=PATH To enabled python support or specify an alternative |
---|
| 49 | directory for python installation, disabled by |
---|
| 50 | default |
---|
| 51 | --with-php=PATH To enabled php support or specify an alternative |
---|
| 52 | directory for php installation, disabled by default |
---|
| 53 | --with-perl=PATH To enabled perl support or specify an alternative |
---|
| 54 | directory for perl installation, disabled by default |
---|
| 55 | --with-java=PATH To enabled java support, specify a JDK_HOME, |
---|
| 56 | disabled by default |
---|
| 57 | --with-js=PATH specify --with-js=path-to-js to enabled js support, |
---|
| 58 | specify --with-js on linux debian like, js support |
---|
| 59 | is disabled by default |
---|
| 60 | |
---|
| 61 | All the options are described in more details below. |
---|
| 62 | |
---|
| 63 | (Required) GDAL Support |
---|
| 64 | ^^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 65 | |
---|
| 66 | If your gdal-config program is not found in your PATH then you can use the |
---|
| 67 | "*--with-gdal-config*" option to speficy its location. For instance, let suppose that your gdal-config |
---|
| 68 | was installed in /usr/local/bin and this directory is not in your PATH, then you can use |
---|
| 69 | the following command: |
---|
| 70 | |
---|
| 71 | :: |
---|
| 72 | |
---|
| 73 | $ ./configure --with-gdal-config=/usr/local/bin/gdal-config |
---|
| 74 | |
---|
| 75 | (Required) XML2 Support |
---|
| 76 | ^^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 77 | |
---|
| 78 | If your xml2-config program is not found in your PATH then you can use the |
---|
| 79 | "*--with-xml2config*" option to specify its location. For instance, let suppose that |
---|
| 80 | your xml2-config was installed in /usr/local/bin end this directory is not in you PATH, |
---|
| 81 | then you can use the following command: |
---|
| 82 | |
---|
| 83 | :: |
---|
| 84 | |
---|
| 85 | $ ./configure --with-xml2config=/usr/local/bin/xml2-config |
---|
| 86 | |
---|
| 87 | (Optional) Python Support |
---|
| 88 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 89 | |
---|
| 90 | If you want to activate the Python Support for ZOO-Kernel then you will have to use the |
---|
| 91 | "*--with-python*" option. If your python-config program is found in your PATH then you |
---|
| 92 | don't have to specify the path where Python was installed, so using the following command: |
---|
| 93 | |
---|
| 94 | :: |
---|
| 95 | |
---|
| 96 | $ ./configure --with-python |
---|
| 97 | |
---|
| 98 | This suppose that python-config is found in your PATH. |
---|
| 99 | |
---|
| 100 | In case your python-config is not found in your PATH, then you can set the Python installation |
---|
| 101 | directory you are using. For instance, let suppose that you installed Python in /usr/local, |
---|
| 102 | then you can use the following command: |
---|
| 103 | |
---|
| 104 | :: |
---|
| 105 | |
---|
| 106 | $ ./configure --with-python=/usr/local |
---|
| 107 | |
---|
| 108 | This suppose that /usr/local/bin/python-config exists. |
---|
| 109 | |
---|
| 110 | (Optional) PHP Support |
---|
| 111 | ^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 112 | |
---|
| 113 | To be able to activate PHP Support for ZOO-Kernel you'll need to get a local PHP Embedded |
---|
| 114 | installation, for more informations about configure options to use to get such kind of PHP |
---|
| 115 | installation you can refer to this page : |
---|
| 116 | |
---|
| 117 | http://zoo-project.org/trac/wiki/ZooKernel/Embed/PHP |
---|
| 118 | |
---|
| 119 | If you want to activate the PHP Support for ZOO-Kernel then you will have to use the |
---|
| 120 | "*--with-php*" option. If your php-config program is found in your PATH then you don't have |
---|
| 121 | to specify the path where PHP was installed, so using the following commnd: |
---|
| 122 | |
---|
| 123 | :: |
---|
| 124 | |
---|
| 125 | $ ./configure --with-php |
---|
| 126 | |
---|
| 127 | This suppose that php-config is found in your PATH. |
---|
| 128 | |
---|
| 129 | In case your php-config is not found in your PATH, then you can set the PHP installation |
---|
| 130 | directory you are using. For instance, let suppose that you installed PHP in /usr/local, |
---|
| 131 | then you can use the following command: |
---|
| 132 | |
---|
| 133 | :: |
---|
| 134 | |
---|
| 135 | $ ./configure --with-php=/usr/local |
---|
| 136 | |
---|
| 137 | This suppose that /usr/local/bin/php-config exists. |
---|
| 138 | |
---|
| 139 | (Optional) Perl Support |
---|
| 140 | ^^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 141 | |
---|
| 142 | If you want to activate the Perl Support for ZOO-Kernel then you will have to use the |
---|
| 143 | "*--with-perl*" option. If you do not set any value to this option, then perl program will |
---|
| 144 | be searched in your PATH. So in such case, you can use the following command: |
---|
| 145 | |
---|
| 146 | :: |
---|
| 147 | |
---|
| 148 | $ ./configure --with-perl |
---|
| 149 | |
---|
| 150 | This suppose that perl is found in your PATH. |
---|
| 151 | |
---|
| 152 | In other case, for custom Perl installation, you can set the installation directory. For instance, |
---|
| 153 | let suppose that you installed Perl in /usr/local and /usr/local/bin is not in your PATH, |
---|
| 154 | then you can use the following command: |
---|
| 155 | |
---|
| 156 | :: |
---|
| 157 | |
---|
| 158 | $ ./configure --with-perl=/usr/local |
---|
| 159 | |
---|
| 160 | This suppose that /usr/local/bin/perl exists. |
---|
| 161 | |
---|
| 162 | (Optional) Java Support |
---|
| 163 | ^^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 164 | |
---|
| 165 | If you want to activate the Java Support for ZOO-Kernel then you will have to use the |
---|
| 166 | "*--with-java*" option and set the installation path of your Java SDK. For instance, |
---|
| 167 | let suppose that your Java SDK was installed in /usr/lib/jvm/java-6-sun-1.6.0.22/ directory, |
---|
| 168 | then you can use the following command: |
---|
| 169 | |
---|
| 170 | :: |
---|
| 171 | |
---|
| 172 | $ ./configure --with-java=/usr/lib/jvm/java-6-sun-1.6.0.22/ |
---|
| 173 | |
---|
| 174 | This suppose that the include/linux and jre/lib/i386/client/ subdirectories exist in |
---|
| 175 | /usr/lib/jvm/java-6-sun-1.6.0.22/, include/linux contains the jni.h headers file and |
---|
| 176 | jre/lib/i386/client/ contains the libjvm.so file. |
---|
| 177 | |
---|
| 178 | Note that on MacOS X you only have to set macos as value for the "*--with-java*" option |
---|
| 179 | to get the Java Support for ZOO-Kernel activated. So using the following command: |
---|
| 180 | |
---|
| 181 | :: |
---|
| 182 | |
---|
| 183 | $ ./configure --with-java=macos |
---|
| 184 | |
---|
| 185 | (Optional) JavaScript Support |
---|
| 186 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 187 | |
---|
| 188 | If you want to activate the JavaScript Support for ZOO-Kernel then you will have to use |
---|
| 189 | the "*--with-js*" option. If you are using a "Debian-like" GNU/Linux distribution then |
---|
| 190 | dpkg will be used to detect if the required packages was installed and you don't have to |
---|
| 191 | specify anything here, so you can use the following command: |
---|
| 192 | |
---|
| 193 | :: |
---|
| 194 | |
---|
| 195 | $ ./configure --with-js |
---|
| 196 | |
---|
| 197 | This suppose that js_api.h and libmozjs.so are found in default directories. |
---|
| 198 | |
---|
| 199 | If you get a custom installation of SpiderMonkey or you are not using a Debian packaging |
---|
| 200 | system, then you'll have to specify the directory where you installed it. For |
---|
| 201 | instance, let suppose that you installed your SpiderMonkey in /usr, then you'll |
---|
| 202 | have to use the following command: |
---|
| 203 | |
---|
| 204 | :: |
---|
| 205 | |
---|
| 206 | $ ./configure --with-js=/usr |
---|
| 207 | |
---|
| 208 | This suppose that the /usr/include/js exists and contains the js_api.h headers file and |
---|
| 209 | /usr/lib contains libmozjs.so file. |
---|
| 210 | |
---|
| 211 | WIN32 |
---|
| 212 | ----- |
---|
| 213 | |
---|
| 214 | To be written soon ... |
---|
| 215 | |
---|
| 216 | |
---|