[659] | 1 | .. _install-configure: |
---|
| 2 | |
---|
| 3 | Configure options |
---|
| 4 | ============== |
---|
| 5 | |
---|
| 6 | This 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 | |
---|
| 8 | Configure options |
---|
| 9 | ----------------- |
---|
| 10 | |
---|
| 11 | Here 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 | |
---|
| 31 | All the options are described in more details in the following sections. |
---|
| 32 | |
---|
| 33 | GDAL Support (Required) |
---|
| 34 | ........................................ |
---|
| 35 | |
---|
| 36 | If 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 | |
---|
| 42 | XML2 Support (Required) |
---|
| 43 | ........................................ |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | If 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 | |
---|
| 53 | Python Support (Optional) |
---|
| 54 | .............................................. |
---|
| 55 | |
---|
| 56 | The *--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 | |
---|
| 62 | This assumes that python-config is found in PATH. If not, then you can specify the Python |
---|
| 63 | installation directory using the following command (with ``/usr/local`` as example python directory): |
---|
| 64 | |
---|
| 65 | :: |
---|
| 66 | |
---|
| 67 | $ ./configure --with-python=/usr/local |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | Python Version (Optional) |
---|
| 71 | .............................................. |
---|
| 72 | |
---|
| 73 | A 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 | |
---|
| 79 | PHP Support (Optional) |
---|
| 80 | .............................................. |
---|
| 81 | |
---|
| 82 | The *--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 | |
---|
| 88 | This 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 | |
---|
| 98 | Perl Support (Optional) |
---|
| 99 | .............................................. |
---|
| 100 | |
---|
| 101 | The *--with-perl* option can be used for activating the ZOO-Kernel Perl support, as follow: |
---|
| 102 | |
---|
| 103 | :: |
---|
| 104 | |
---|
| 105 | $ ./configure --with-perl |
---|
| 106 | |
---|
| 107 | This 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, |
---|
| 108 | then 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 | |
---|
| 115 | Java Support (Optional) |
---|
| 116 | .............................................. |
---|
| 117 | |
---|
[679] | 118 | In 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] | 120 | if 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] | 126 | This 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 | |
---|
| 138 | JavaScript Support (Optional) |
---|
| 139 | .............................................. |
---|
| 140 | |
---|
[679] | 141 | In order to activate the JavaScript support for ZOO-Kernel, |
---|
| 142 | the *--with-js* configure option must be specified. If you are using a "Debian-like" GNU/Linux distribution then |
---|
[659] | 143 | dpkg will be used to detect if the required packages are installed and you don't have to |
---|
| 144 | specify 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 | |
---|
| 150 | If youwant to use a custom installation of `SpiderMonkey <https://developer.mozilla.org/en/SpiderMonkey>`__ ,or if you are not using a Debian packaging |
---|
| 151 | system, 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 | |
---|
| 158 | MapServer Support (Optional) |
---|
| 159 | .............................................. |
---|
| 160 | |
---|
| 161 | |
---|
[679] | 162 | In order to activate the WMS, WFS and WCS output support using |
---|
| 163 | MapServer, the *--with-mapserver* option must be used. The path to |
---|
| 164 | ``mapserver-config`` which is located in the source code of MapServer |
---|
| 165 | must also be set, using the following command: |
---|
[659] | 166 | |
---|
| 167 | :: |
---|
| 168 | |
---|
| 169 | $ ./configure --with-mapserver=/path/to/your/mapserver_config/ |
---|
| 170 | |
---|
| 171 | |
---|
[679] | 172 | Read more about the :ref:`kernel-mapserver`. |
---|
[659] | 173 | |
---|
| 174 | |
---|
| 175 | Orfeo Toolbox Support (Optional) |
---|
| 176 | ..................................................... |
---|
| 177 | |
---|
| 178 | In 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 | |
---|
| 185 | Read more about the :ref:`kernel-orfeotoolbox`. |
---|
| 186 | |
---|
| 187 | |
---|
| 188 | SAGA GIS Support (Optional) |
---|
| 189 | ..................................................... |
---|
| 190 | |
---|
| 191 | |
---|
| 192 | In 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 | |
---|
| 199 | Read more about the :ref:`kernel-sagagis`. |
---|