[659] | 1 | .. _install-installation: |
---|
| 2 | |
---|
| 3 | Installation on Unix/Linux |
---|
[696] | 4 | ========================== |
---|
[659] | 5 | |
---|
[696] | 6 | To build and install ZOO-Project on your Web Server you will need 4 |
---|
| 7 | steps : |
---|
| 8 | |
---|
[713] | 9 | .. contents:: |
---|
| 10 | :local: |
---|
| 11 | :depth: 1 |
---|
| 12 | :backlinks: top |
---|
[696] | 13 | |
---|
[713] | 14 | |
---|
[696] | 15 | Build cgic |
---|
| 16 | ---------- |
---|
| 17 | |
---|
| 18 | Run the following commands from the ``thirds/cgic`` directory to build |
---|
| 19 | the cgic library. |
---|
| 20 | |
---|
| 21 | :: |
---|
| 22 | |
---|
| 23 | cd thirds/cgic |
---|
| 24 | make |
---|
| 25 | |
---|
| 26 | The cgic library originaly come from `http://www.boutell.com/cgic |
---|
| 27 | <http://www.boutell.com/cgic>`_. |
---|
| 28 | |
---|
| 29 | .. warning:: |
---|
| 30 | |
---|
| 31 | You may need to edit the ``Makefile`` in case you are using a 64 bits |
---|
| 32 | platform for building and your fcgi library is not located in ``/usr/lib64``. |
---|
| 33 | |
---|
[714] | 34 | Install ZOO-Kernel |
---|
| 35 | ------------------ |
---|
[696] | 36 | |
---|
| 37 | |
---|
[659] | 38 | For the impatient |
---|
[696] | 39 | ................. |
---|
[659] | 40 | |
---|
| 41 | Run the following commands from the directory where you :ref:`install-download` and extracted the ZOO Kernel source code in order to build the ``zoo_loader.cgi`` CGI program with default options. |
---|
| 42 | |
---|
| 43 | :: |
---|
| 44 | |
---|
[696] | 45 | cd zoo-project/zoo-kernel |
---|
[659] | 46 | autoconf |
---|
| 47 | ./configure |
---|
| 48 | make |
---|
[696] | 49 | make install |
---|
[659] | 50 | |
---|
[696] | 51 | This should produce executables for the *zoo_loader.cgi* CGI program |
---|
| 52 | (located per default in ``/usr/lib/cgi-bin/``) and a shared library |
---|
| 53 | ``libzoo_service`` (located per default in ``/usr/local/lib``). |
---|
[659] | 54 | |
---|
| 55 | .. warning:: |
---|
| 56 | |
---|
[696] | 57 | Edit ZOO-Kernel installation settings in the ``main.cfg`` file (set |
---|
| 58 | ``tmpPath`` and ``tmpUrl`` to fit your web server configuration). |
---|
[659] | 59 | |
---|
| 60 | |
---|
[696] | 61 | Configure options |
---|
| 62 | ................. |
---|
[659] | 63 | |
---|
[714] | 64 | 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. |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | Here is the list of available options in the same order as returned by |
---|
| 68 | ``./configure --help`` command: |
---|
| 69 | |
---|
[713] | 70 | .. contents:: |
---|
| 71 | :local: |
---|
| 72 | :depth: 2 |
---|
| 73 | :backlinks: top |
---|
| 74 | |
---|
| 75 | Specific CGI Directory |
---|
| 76 | ********************** |
---|
[659] | 77 | |
---|
[713] | 78 | In the case your ``cgi-bin`` is not located in ``/usr/lib/`` as it is |
---|
| 79 | assumed per default, then you can specify a specific target location |
---|
| 80 | by using the following option: |
---|
[659] | 81 | |
---|
[713] | 82 | .. code:: |
---|
[659] | 83 | |
---|
[713] | 84 | ./configure --with-cgi-dir=/Lbrary/WebServer/CGI-Executables |
---|
[659] | 85 | |
---|
[713] | 86 | This way, when you will run the ``make install`` command, the |
---|
| 87 | ZOO-Kernel will be deployed in the specified directory (so, |
---|
| 88 | `/Lbrary/WebServer/CGI-Executables`` in this example). |
---|
[659] | 89 | |
---|
[784] | 90 | Specific main.cfg location (Optional) |
---|
| 91 | ************************************** |
---|
| 92 | |
---|
| 93 | Per default, the ZOO-Kernel search for the ``main.cfg`` file from its |
---|
| 94 | installation directory but, in case you want to store this file in |
---|
| 95 | another place, then you can use the ``--with-etc-dir`` option so it |
---|
[806] | 96 | will search for the ``main.cfg`` file in the ``sysconfdir`` directory. |
---|
[784] | 97 | |
---|
| 98 | For instance, you can define that the directory to store the |
---|
| 99 | ``main.cfg`` file is the ``/etc/zoo-project`` directory, by using the |
---|
| 100 | following command: |
---|
| 101 | |
---|
| 102 | .. code:: |
---|
| 103 | |
---|
| 104 | ./configure --with-etc-dir=yes --sysconfdir=/etc/zoo-project |
---|
| 105 | |
---|
| 106 | |
---|
[711] | 107 | .. _zoo_install_db_backend: |
---|
| 108 | |
---|
[700] | 109 | Use a Database Backend (Optional) |
---|
[713] | 110 | ********************************** |
---|
[659] | 111 | |
---|
[700] | 112 | If you want to share the ongoing informations of running services |
---|
[713] | 113 | between various ZOO-Kernel instances then you should use this |
---|
| 114 | option: ``--with-db-backend``. This way, both the *GetStatus*, |
---|
| 115 | *GetResult* and *Dismiss* requests can be run from any host accessing |
---|
| 116 | the same database. Obviously, this will require that the ZOO-Kernel is |
---|
| 117 | able to access the Database server. To learn how to configure this |
---|
| 118 | connection and how to create this database please refer to :ref:`[1] |
---|
| 119 | <zoo_activate_db_backend>` and :ref:`[2] <zoo_create_db_backend>` |
---|
| 120 | respectively. |
---|
[700] | 121 | |
---|
| 122 | .. note:: |
---|
| 123 | By now, the ZOO-Kernel is not able to handle correctly the |
---|
| 124 | *Dismiss* request from any host. Nevertheless, it will provide |
---|
| 125 | valid response from any host, but only the host which is really |
---|
| 126 | handling the service will be able to stop it and remove all the |
---|
| 127 | linked files. |
---|
| 128 | |
---|
[722] | 129 | .. _zoo_create_db_backend: |
---|
| 130 | |
---|
| 131 | To create a new database to be used by the ZOO-Kernel, you have |
---|
| 132 | to load the `schema.sql |
---|
| 133 | <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel/sql/schema.sql>`_ |
---|
| 134 | file. For instance, you may run the following: |
---|
| 135 | |
---|
| 136 | .. code:: |
---|
| 137 | |
---|
| 138 | createdb zoo_project |
---|
| 139 | psql zoo_project -f zoo-project/zoo-kernel/sql/schema.sql |
---|
| 140 | |
---|
| 141 | .. note:: |
---|
| 142 | You can choose another schema to store ZOO-Kernel specific |
---|
| 143 | informations. In such a case, you would need to edit the |
---|
| 144 | schema.sql file to uncomment line `33 |
---|
| 145 | <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel/sql/schema.sql#L33>`_ |
---|
| 146 | and `34 |
---|
| 147 | <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel/sql/schema.sql#L34>`_. |
---|
| 148 | |
---|
[920] | 149 | .. _zoo_create_metadb: |
---|
| 150 | |
---|
[917] | 151 | Metadata Database (Optional) |
---|
| 152 | ***************************** |
---|
[722] | 153 | |
---|
| 154 | |
---|
[917] | 155 | It is possible to use a PostgreSQL database to store metadata |
---|
| 156 | information about WPS Services. This support is optional and require |
---|
| 157 | to be activated by using the ``--with-metadb=yes`` option. |
---|
| 158 | |
---|
| 159 | To create the database for storing the metadata informations about the |
---|
| 160 | WPS Services, you may use the following command: |
---|
| 161 | |
---|
| 162 | .. code:: |
---|
| 163 | |
---|
| 164 | createdb zoo_metadb |
---|
| 165 | psql zoo_metadb -f zoo-project/zoo-kernel/sql/zoo_collectiondb.sql |
---|
| 166 | |
---|
| 167 | In case you want to convert an existing zcfg file then, you can use |
---|
| 168 | the ``zcfg2sql`` tool from the command line. It can be found in |
---|
| 169 | ``thirds/zcfg2sql`` and can be build simply by running the ``make`` |
---|
| 170 | command. After compilation you only need to give it the path of the |
---|
| 171 | zcfg file you want to obtain the SQL queries required to store the |
---|
| 172 | metadata informations in the database rather than in zcfg file. |
---|
| 173 | |
---|
| 174 | For instance you may use the following command: |
---|
| 175 | |
---|
| 176 | .. code:: |
---|
| 177 | |
---|
| 178 | #Direct import in the zoo_metadb database |
---|
| 179 | ./zcfg2sql /Path/To/MyZCFGs/myService.zcfg | psql zoo_metadb |
---|
| 180 | #Create a SQL file for a futur import |
---|
| 181 | ./zcfg2sql /Path/To/MyZCFGs/myService.zcfg > myService.sql |
---|
| 182 | |
---|
| 183 | |
---|
| 184 | |
---|
[714] | 185 | YAML Support (Optional) |
---|
| 186 | ************************ |
---|
[700] | 187 | |
---|
[714] | 188 | If ``yaml.h`` file is not found in your ``/usr/include`` directory and |
---|
| 189 | ``libyaml.so`` is not found in ``/usr/lib``, a ``--with-yaml`` option |
---|
[917] | 190 | can be used to specify its location. For instance, if the header file |
---|
[714] | 191 | lies in ``/usr/local/include`` and the shared library is located in |
---|
| 192 | ``/usr/local/lib``, you may use the following command: |
---|
[700] | 193 | |
---|
[714] | 194 | :: |
---|
[713] | 195 | |
---|
[714] | 196 | $ ./configure --with-yaml=/usr/local |
---|
| 197 | |
---|
| 198 | |
---|
| 199 | FastCGI Support (Required) |
---|
| 200 | *************************** |
---|
| 201 | |
---|
| 202 | If your FastCGI library is not available in the default search path, a |
---|
| 203 | ``--with-fastcgi`` option can be used to specify its location. For |
---|
| 204 | instance, if ``libfcgi.so`` lies in ``/usr/local/lib`` which is not in |
---|
| 205 | your ``LD_SEARCH_PATH``, you may use the following command: |
---|
| 206 | |
---|
| 207 | :: |
---|
| 208 | |
---|
| 209 | $ ./configure --with-fastcgi=/usr/local |
---|
| 210 | |
---|
| 211 | |
---|
| 212 | |
---|
[713] | 213 | GDAL Support (Required) |
---|
| 214 | ************************ |
---|
| 215 | |
---|
| 216 | If gdal-config program is not found in your ``PATH``, a |
---|
| 217 | ``--with-gdal-config`` option can be used to specify its location. For |
---|
| 218 | instance, if ``gdal-config`` lies in ``/usr/local/bin`` which is not in |
---|
[714] | 219 | your ``PATH``, you may use the following command: |
---|
[713] | 220 | |
---|
| 221 | :: |
---|
| 222 | |
---|
| 223 | $ ./configure --with-gdal-config=/usr/local/bin/gdal-config |
---|
| 224 | |
---|
[714] | 225 | |
---|
| 226 | GEOS Support (Optional) |
---|
| 227 | ************************ |
---|
| 228 | |
---|
| 229 | If ``geos-config`` program is not found in your ``PATH``, a |
---|
| 230 | ``--with-geosconfig`` option can be used to specify its location. For |
---|
| 231 | instance, if ``geos-config`` lies in ``/usr/local/bin`` which is not in |
---|
| 232 | your ``PATH``, you may use the following command: |
---|
| 233 | |
---|
| 234 | :: |
---|
| 235 | |
---|
| 236 | $ ./configure --with-geosconfig=/usr/local/bin/geos-config |
---|
| 237 | |
---|
| 238 | |
---|
| 239 | CGAL Support (Optional) |
---|
| 240 | ************************ |
---|
| 241 | |
---|
| 242 | If ``CGAL/Delaunay_triangulation_2.h`` program is not found in your |
---|
| 243 | ``/usr/include`` directory, a ``--with-cgal`` option can be used to |
---|
| 244 | specify its location. For instance, if the file lies in |
---|
| 245 | ``/usr/local/include`` which is not in your PATH, you may use the |
---|
| 246 | following command: |
---|
| 247 | |
---|
| 248 | :: |
---|
| 249 | |
---|
| 250 | $ ./configure --with-cgal=/usr/local |
---|
| 251 | |
---|
| 252 | |
---|
| 253 | |
---|
| 254 | MapServer Support (Optional) |
---|
| 255 | ***************************** |
---|
| 256 | |
---|
| 257 | |
---|
| 258 | In order to activate the WMS, WFS and WCS output support using |
---|
| 259 | MapServer, the ``--with-mapserver`` option must be used. The path to |
---|
| 260 | ``mapserver-config`` which is located in the source code of MapServer |
---|
| 261 | must also be set, using the following command: |
---|
| 262 | |
---|
| 263 | :: |
---|
| 264 | |
---|
| 265 | $ ./configure --with-mapserver=/path/to/your/mapserver_config/ |
---|
| 266 | |
---|
| 267 | |
---|
| 268 | Read more about the :ref:`kernel-mapserver`. |
---|
| 269 | |
---|
[713] | 270 | XML2 Support (Required) |
---|
| 271 | ************************ |
---|
| 272 | |
---|
| 273 | 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: |
---|
| 274 | |
---|
| 275 | :: |
---|
| 276 | |
---|
| 277 | $ ./configure --with-xml2config=/usr/local/bin/xml2-config |
---|
| 278 | |
---|
[696] | 279 | Python Support (Optional) |
---|
[713] | 280 | ************************** |
---|
[659] | 281 | |
---|
[696] | 282 | The ``--with-python=yes`` option is required to activate the :ref:`kernel_index` Python support, using the following command: |
---|
[659] | 283 | |
---|
[696] | 284 | :: |
---|
[659] | 285 | |
---|
[696] | 286 | $ ./configure --with-python=yes |
---|
[659] | 287 | |
---|
[696] | 288 | This assumes that python-config is found in your ``PATH``. If not, |
---|
| 289 | then you can specify the Python installation directory using the |
---|
| 290 | following command (with Python installed in the ``/usr/local`` |
---|
| 291 | directory): |
---|
[659] | 292 | |
---|
[696] | 293 | :: |
---|
[659] | 294 | |
---|
[696] | 295 | $ ./configure --with-python=/usr/local |
---|
[659] | 296 | |
---|
| 297 | |
---|
[696] | 298 | Python Version |
---|
[713] | 299 | ############## |
---|
[659] | 300 | |
---|
[696] | 301 | If multiple Python versions are available and you want to use a |
---|
| 302 | specific one, then you can use the ``--with-pyvers`` option as shown |
---|
| 303 | bellow: |
---|
[659] | 304 | |
---|
[696] | 305 | :: |
---|
[659] | 306 | |
---|
[696] | 307 | $ ./configure --with-pyvers=2.7 |
---|
[659] | 308 | |
---|
| 309 | |
---|
[714] | 310 | .. _js-support: |
---|
| 311 | |
---|
| 312 | JavaScript Support (Optional) |
---|
| 313 | ****************************** |
---|
| 314 | |
---|
| 315 | In order to activate the JavaScript support for ZOO-Kernel, |
---|
| 316 | the ``--with-js=yes`` configure option must be specified. If you are using |
---|
| 317 | a "Debian-like" GNU/Linux distribution then dpkg will be used to |
---|
| 318 | detect if the required packages are installed and you don't have to |
---|
| 319 | specify anything here. The following command is only needed (assuming |
---|
| 320 | that js_api.h and libmozjs.so are found in default directories): |
---|
| 321 | |
---|
| 322 | |
---|
| 323 | :: |
---|
| 324 | |
---|
| 325 | $ ./configure --with-js=yes |
---|
| 326 | |
---|
| 327 | If you want to use a custom installation of `SpiderMonkey |
---|
| 328 | <https://developer.mozilla.org/en/SpiderMonkey>`__ , or if you are not |
---|
| 329 | using a Debian packaging system, then you'll have to specify the |
---|
| 330 | directory where it is installed. For instance, if SpiderMonkey is in |
---|
| 331 | ``/usr/local/``, then the following command must be used: |
---|
| 332 | |
---|
| 333 | :: |
---|
| 334 | |
---|
| 335 | $ ./configure --with-js=/usr/local |
---|
| 336 | |
---|
| 337 | |
---|
[696] | 338 | PHP Support (Optional) |
---|
[713] | 339 | *********************** |
---|
[659] | 340 | |
---|
[696] | 341 | The ``--with-php=yes`` option is required to activate the |
---|
| 342 | :ref:`kernel_index` PHP support`, using the following command: |
---|
[659] | 343 | |
---|
[696] | 344 | :: |
---|
[659] | 345 | |
---|
[696] | 346 | $ ./configure --with-php=yes |
---|
[659] | 347 | |
---|
[696] | 348 | This assumes that ``php-config`` can be found in the ``<PATH>/bin`` |
---|
| 349 | directory . So, supposing the your ``php-config`` can be found in |
---|
| 350 | ``/usr/local/bin``, then use the following command: |
---|
[659] | 351 | |
---|
[696] | 352 | :: |
---|
[659] | 353 | |
---|
[696] | 354 | $ ./configure --with-php=/usr/local |
---|
[659] | 355 | |
---|
[696] | 356 | .. warning:: |
---|
| 357 | ZOO-Kernel optional PHP support requires a local PHP Embedded installation. Read more `here <http://zoo-project.org/trac/wiki/ZooKernel/Embed/PHP>`__. |
---|
[659] | 358 | |
---|
| 359 | |
---|
[696] | 360 | Java Support (Optional) |
---|
[713] | 361 | ************************ |
---|
[659] | 362 | |
---|
[696] | 363 | In order to activate the Java support for ZOO-Kernel, the |
---|
| 364 | `--with-java` configure option must be specified and sets the |
---|
| 365 | installation path of your Java SDK. For instance, if Java SDK is |
---|
| 366 | installed in the ``/usr/lib/jvm/java-6-sun-1.6.0.22/`` directory, |
---|
| 367 | then the following command can be used: |
---|
[659] | 368 | |
---|
[696] | 369 | :: |
---|
[659] | 370 | |
---|
[696] | 371 | $ ./configure --with-java=/usr/lib/jvm/java-6-sun-1.6.0.22/ |
---|
[659] | 372 | |
---|
[696] | 373 | This assumes that the ``include/linux`` and ``jre/lib/i386/client/`` |
---|
| 374 | subdirectories exist in ``/usr/lib/jvm/java-6-sun-1.6.0.22/``, and |
---|
| 375 | that the ``include/linux`` directory contains the ``jni.h`` headers file |
---|
| 376 | and that the ``jre/lib/i386/client/`` directory contains the ``libjvm.so`` |
---|
| 377 | file. |
---|
[659] | 378 | |
---|
[809] | 379 | .. note:: |
---|
| 380 | You can use the `--with-java-rpath` option to produce a binary |
---|
| 381 | aware of the libjvm location. |
---|
[659] | 382 | |
---|
[809] | 383 | |
---|
[696] | 384 | .. note:: |
---|
| 385 | With Mac OS X you only have to set *macos* as the value for the |
---|
| 386 | ``--with-java`` option to activate Java support. For example: |
---|
[659] | 387 | |
---|
[696] | 388 | :: |
---|
[659] | 389 | |
---|
[696] | 390 | $ ./configure --with-java=macos |
---|
[659] | 391 | |
---|
| 392 | |
---|
[714] | 393 | Perl Support (Optional) |
---|
| 394 | ************************ |
---|
[659] | 395 | |
---|
[714] | 396 | The ``--with-perl=yes`` option can be used for activating the |
---|
| 397 | ZOO-Kernel Perl support, as follow: |
---|
[659] | 398 | |
---|
[696] | 399 | :: |
---|
[659] | 400 | |
---|
[714] | 401 | $ ./configure --with-perl=yes |
---|
[659] | 402 | |
---|
[714] | 403 | This assumes that perl is found in your PATH. For instance, if Perl is |
---|
| 404 | installed in ``/usr/local`` and ``/usr/local/bin`` is not found in |
---|
| 405 | your ``PATH``, then the following command can be used (this assumes |
---|
| 406 | that ``/usr/local/bin/perl`` exists): |
---|
[659] | 407 | |
---|
[696] | 408 | :: |
---|
[659] | 409 | |
---|
[714] | 410 | $ ./configure --with-perl=/usr/local |
---|
[659] | 411 | |
---|
| 412 | |
---|
[696] | 413 | Orfeo Toolbox Support (Optional) |
---|
[713] | 414 | ********************************* |
---|
[659] | 415 | |
---|
[696] | 416 | In order to activate the optional Orfeo Toolbox support, the |
---|
| 417 | ``--with-otb`` option must be used, using the following command: |
---|
[659] | 418 | |
---|
[696] | 419 | :: |
---|
[659] | 420 | |
---|
[696] | 421 | $ ./configure --with-otb=/path/to/your/otb/ |
---|
[659] | 422 | |
---|
| 423 | |
---|
[696] | 424 | Read more about the :ref:`kernel-orfeotoolbox`. |
---|
[659] | 425 | |
---|
[696] | 426 | .. warning:: |
---|
| 427 | To build the Orfeo Toolbox support you will require ITK, the |
---|
| 428 | default version of ITK is 4.5, in case you use another version, |
---|
| 429 | please make sure to use the ``--with-itk-version`` to specificy |
---|
| 430 | what is the version available on your system. |
---|
[659] | 431 | |
---|
[696] | 432 | SAGA GIS Support (Optional) |
---|
[713] | 433 | **************************** |
---|
[659] | 434 | |
---|
| 435 | |
---|
[696] | 436 | In order to activate the optional SAGA GIS support, the *--with-saga* option must be used, using the following command: |
---|
[659] | 437 | |
---|
| 438 | :: |
---|
| 439 | |
---|
[696] | 440 | $ ./configure --with-saga=/path/to/your/saga/ |
---|
[659] | 441 | |
---|
| 442 | |
---|
[696] | 443 | Read more about the :ref:`kernel-sagagis`. |
---|
[659] | 444 | |
---|
[696] | 445 | .. warning:: |
---|
| 446 | In case wx-config is not in your ``PATH`` please, make sure to use |
---|
| 447 | the ``--with-wx-config`` to specify its location. |
---|
[659] | 448 | |
---|
[717] | 449 | Translation support (Optional) |
---|
| 450 | ****************************** |
---|
| 451 | |
---|
[722] | 452 | The ZOO-Kernel is able to translate the messages it produces in different |
---|
| 453 | natural languages. This requires that you download `the messages file |
---|
| 454 | <https://www.transifex.com/projects/p/zoo-kernel-internationalization/>`_ |
---|
| 455 | translated in your language, if any. Then, for this translation |
---|
| 456 | support to work, you have to generate manually the requested file on |
---|
| 457 | your system. For instance for the French translation, you may use the |
---|
| 458 | following command: |
---|
[717] | 459 | |
---|
| 460 | .. code:: |
---|
| 461 | |
---|
[722] | 462 | msgfmt messagespo_fr_FR.utf8.po -o /usr/share/locale/fr/LC_MESSAGES/zoo-kernel.mo |
---|
[717] | 463 | |
---|
| 464 | The ZOO-Kernel is also able to handle translation of |
---|
| 465 | ZOO-Services. Please, refer to :ref:`this document |
---|
| 466 | <service_translation>` for more details on the procedure to add new |
---|
| 467 | ZOO-Service translation files. |
---|
| 468 | |
---|
| 469 | .. warning:: |
---|
| 470 | The location of the final ``.mo`` file may vary depending on your |
---|
| 471 | system setup. |
---|
| 472 | |
---|
| 473 | |
---|
[696] | 474 | Install ZOO-Services |
---|
| 475 | -------------------- |
---|
[659] | 476 | |
---|
[696] | 477 | .. warning:: |
---|
| 478 | We present here a global installation procedure for basics |
---|
| 479 | ZOO-Services, for details about automatic installation of services |
---|
| 480 | provided by :ref:`kernel-orfeotoolbox` or :ref:`kernel-sagagis`, |
---|
| 481 | please refer to there specific documentations. |
---|
[659] | 482 | |
---|
[696] | 483 | Depending on the programming language used to implement the |
---|
| 484 | ZOO-Services you want to install, you will need to build a |
---|
| 485 | Services Provider. In the case of *C* and *Fotran*, you would create a |
---|
| 486 | shared library exporting the functions corresponding to all the |
---|
| 487 | ZOO-Services provided by this Services Provider. In case of *Java*, |
---|
| 488 | you will need to build a Java Class. In any other programming |
---|
| 489 | language, you should simply have to install the ServiceProvider and |
---|
| 490 | the zcfg files. |
---|
[659] | 491 | |
---|
[696] | 492 | If building a Shared library or a Java class is required, then you |
---|
| 493 | should find a ``Makefile`` in the service directory which is |
---|
| 494 | responsible to help you build this Services Provider. So you should |
---|
| 495 | simply run the `make` command from the Service directory to generate |
---|
| 496 | the required file. |
---|
[659] | 497 | |
---|
[696] | 498 | Then you simply need to copy the content of the ``cgi-env`` directory |
---|
| 499 | in ``cgi-bin``. |
---|
[659] | 500 | |
---|
[696] | 501 | To install the ``ogr/base-vect-ops`` Services Provider, supposing that |
---|
| 502 | your ``cgi-bin`` directory is ``/usr/local/lib`` use the following |
---|
| 503 | commands: |
---|
[659] | 504 | |
---|
[696] | 505 | .. code:: |
---|
[659] | 506 | |
---|
[696] | 507 | cd zoo-project/zoo-services/ogr/base-vect-ops |
---|
| 508 | make |
---|
| 509 | cp cgi-env/*.* /usr/lib/cgi-bin |
---|
[659] | 510 | |
---|
[696] | 511 | .. note:: |
---|
| 512 | You may also run ``make install`` directly after ``make``. |
---|
[659] | 513 | |
---|
| 514 | |
---|
[696] | 515 | To install the hello-py Services Provider, use the following commands: |
---|
[659] | 516 | |
---|
[696] | 517 | .. code:: |
---|
| 518 | |
---|
| 519 | cd zoo-project/zoo-services/hello-py/ |
---|
| 520 | cp cgi-env/* /usr/lib/cgi-bin |
---|
| 521 | |
---|
| 522 | |
---|
| 523 | Testing your installation |
---|
| 524 | ------------------------- |
---|
| 525 | |
---|
| 526 | To test your installation yous should first be able to run the |
---|
| 527 | following command from the ``cgi-bin`` directory: |
---|
| 528 | |
---|
| 529 | .. code:: |
---|
| 530 | |
---|
| 531 | ./zoo_loader.cgi "request=GetCapabilities&service=WPS" |
---|
| 532 | |
---|
| 533 | |
---|