source: trunk/docs/kernel/install-unix.txt @ 272

Last change on this file since 272 was 272, checked in by nbozon, 13 years ago

add keywords with svn propset

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

Search

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png