source: branches/PublicaMundi_David-devel/docs/install/install-confoptions.rst @ 689

Last change on this file since 689 was 679, checked in by nbozon, 10 years ago

various doc enhancements

File size: 6.9 KB
RevLine 
[659]1.. _install-configure:
2
3Configure options
4==============
5
6This section provides information on :ref:`kernel_index` configure options. It is recommanded to also read the :ref:`kernel_config` section for configuration technical details.
7
8Configure options
9-----------------
10
11Here is the list of available options as returned by *./configure --help* command:
12
13::
14
15  --with-PACKAGE[=ARG]    Use PACKAGE [ARG=yes]
16  --without-PACKAGE       Do not use PACKAGE (same as --with-PACKAGE=no)
17  --with-gdal-config=FILE Specifies an alternative gdal-config file
18  --with-xml2config=FILE  Specifies an alternative xml2-config file
19  --with-python=PATH      Enables python support or specifies an alternative directory for python installation (disabled by default)
20  --with-pyvers=NUM       Uses a specific python version
21  --with-php=PATH         Enables php support or specify an alternative directory for php installation, disabled by default
22  --with-perl=PATH        Enables perl support or specifies an alternative directory for perl installation, disabled by default
23  --with-java=PATH        Enables java support or specifies a JDK_HOME, disabled by default
24  --with-js=PATH          Enables javascript support, disabled by default
25  --with-mapserver=PATH   Specifies the path for MapServer compiled source tree
[679]26  --with-itk=PATH          Specifies an alternative location for the ITK library
27  --with-itk-version=VERSION          Specifies an alternative version for the ITK library     
[659]28  --with-otb=PATH         Enables optional OrfeoToolbox support
29  --with-saga=PATH        Enables optional SAGA GIS support
30
31All the options are described in more details in the following sections.
32
33GDAL Support (Required)
34........................................
35
36If gdal-config program is not found in PATH, a *--with-gdal-config* option can be used to specify its location. For instance, if gdal-config lies in ``/usr/local/bin`` which is not in PATH, you may use the following command:
37
38::
39
40  $ ./configure --with-gdal-config=/usr/local/bin/gdal-config
41
42XML2 Support (Required)
43........................................
44
45
46If xml2-config program is not found in PATH, a *--with-xml2config* option can be used  to specify its location. For instance, if xml2-config is installed in ``/usr/local/bin`` which is not in PATH, you may use the following command:
47
48::
49
50  $ ./configure --with-xml2config=/usr/local/bin/xml2-config
51
52
53Python Support (Optional)
54..............................................
55
56The *--with-python* option is required to activate the :ref:`kernel_index` Python support, using the following command:
57
58::
59
60  $ ./configure --with-python
61
62This assumes that python-config is found in PATH. If not, then you can specify the Python
63installation directory using the following command (with ``/usr/local`` as example python directory):
64
65::
66
67  $ ./configure --with-python=/usr/local
68
69
70Python Version (Optional)
71..............................................
72
73A specific version of Python can be used, with the *--with-pyvers* option as shown bellow:
74::
75
76  $ ./configure --with-pyvers=2.6
77
78
79PHP Support (Optional)
80..............................................
81
82The *--with-php* option is required to activate the :ref:`kernel_index` PHP support, using the following command:
83
84::
85
86  $ ./configure --with-php
87
88This assumes that php-config is found in PATH. If not, then you can specify the PHP installation  directory, using the following command (with ``/usr/local`` as example PHP directory)
89
90::
91
92  $ ./configure --with-php=/usr/local
93
94.. warning::
95    ZOO-Kernel optional PHP support requires a local PHP Embedded installation. Read more `here <http://zoo-project.org/trac/wiki/ZooKernel/Embed/PHP>`__.
96
97
98Perl Support (Optional)
99..............................................
100
101The *--with-perl* option can be used for activating the ZOO-Kernel Perl support, as follow:
102
103::
104
105  $ ./configure --with-perl
106
107This assumes that perl is found in PATH. For instance, if Perl is installed in /usr/local and /usr/local/bin which is not found in PATH,
108then the following command can be used (this assumes that /usr/local/bin/perl exists):
109
110::
111
112  $ ./configure --with-perl=/usr/local
113
114
115Java Support (Optional)
116..............................................
117
[679]118In order to activate the Java support for ZOO-Kernel, the
119*--with-java* configure option must be specified and sets the installation path of your Java SDK. For instance,
[659]120if Java SDK is installed in the ``/usr/lib/jvm/java-6-sun-1.6.0.22/`` directory,  then the following command can be used:
121
122::
123
124  $ ./configure --with-java=/usr/lib/jvm/java-6-sun-1.6.0.22/
125
[679]126This assumes that the ``include/linux`` and ``jre/lib/i386/client/`` subdirectories exist in ``/usr/lib/jvm/java-6-sun-1.6.0.22/``, that the ``include/linux`` directory contains the jni.h headers file and that the ``jre/lib/i386/client/`` directory contains the libjvm.so file.
[659]127
128.. note:: 
129   With Mac OS X you only have to set *macos* as the value for the *--with-java* option
130   to activate Java support. For example:
131
132   ::
133
134     $ ./configure --with-java=macos
135
136.. _js-support:
137
138JavaScript Support (Optional)
139..............................................
140
[679]141In order to activate the JavaScript support for ZOO-Kernel,
142the *--with-js* configure option must be specified. If you are using a "Debian-like" GNU/Linux distribution then
[659]143dpkg will be used to detect if the required packages are installed and you don't have to
144specify anything here. The following command is only needed (assuming that js_api.h and libmozjs.so are found in default directories):
145
146::
147
148  $ ./configure --with-js
149
150If youwant to use a custom installation of `SpiderMonkey <https://developer.mozilla.org/en/SpiderMonkey>`__ ,or if you are not using a Debian packaging
151system, then you'll have to specify the directory where it is installed. For  instance, if SpiderMonkey is in /usr, then the following command must be used:
152
153::
154
155  $ ./configure --with-js=/usr
156
157
158MapServer Support (Optional)
159..............................................
160
161
[679]162In order to activate the WMS, WFS and WCS output support using
163MapServer, the *--with-mapserver* option must be used. The path to
164``mapserver-config`` which is located in the source code of MapServer
165must also be set, using the following command:
[659]166
167::
168
169  $ ./configure --with-mapserver=/path/to/your/mapserver_config/
170
171
[679]172Read more about the :ref:`kernel-mapserver`.
[659]173
174
175Orfeo Toolbox Support (Optional)
176.....................................................
177
178In order to activate the optional Orfeo Toolbox support, the *--with-otb* option must be used, using the following command:
179
180::
181
182  $ ./configure --with-otb=/path/to/your/otb/
183
184
185Read more about the :ref:`kernel-orfeotoolbox`.
186
187
188SAGA GIS Support (Optional)
189.....................................................
190
191
192In order to activate the optional SAGA GIS support, the *--with-saga* option must be used, using the following command:
193
194::
195
196  $ ./configure --with-saga=/path/to/your/saga/
197
198
199Read more about the :ref:`kernel-sagagis`.
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