Changeset 212


Ignore:
Timestamp:
May 6, 2011, 9:20:15 PM (13 years ago)
Author:
jmckenna
Message:

add CentOS notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/kernel/installation.txt

    r211 r212  
    335335- http://localhost/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=myname
    336336
     337CentOS
     338******
     339
     340.. note::
     341   This documentation was created thanks to Guillaume Sueur from Neogeo Technologies which took time to test
     342   installing the ZOO-Kernel on a CentOS 5.5 environment.
     343
     344Requirements
     345^^^^^^^^^^^^
     346
     347Install some standard tools to be able to run ZOO-Kernel on your platform :
     348
     349::
     350
     351  yum install apache2
     352  yum install build-essentials
     353  yum install gcc-c++
     354  yum install zlib-devel
     355  yum install libxml2-devel
     356  yum install bison
     357  yum install openssl
     358  yum install python-devel
     359  yum install subversion
     360
     361Compile then install FastCGI library from source
     362
     363::
     364
     365  wget http://www.fastcgi.com/dist/fcgi.tar.gz
     366  tar xzf fcgi-2.4.0.tar.gz
     367  ./configure
     368  make
     369  make install
     370  echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf
     371  ldconfig
     372
     373Compile then install the autoconf tools :
     374
     375::
     376
     377  wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
     378  tar xzf autoconf-latest.tar.gz
     379  ./configure --prefix=/usr
     380  make
     381  make install
     382
     383Compile then install the flex tool :
     384
     385::
     386
     387  wget http://downloads.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.gz?r=http%3A%2F%2Fflex.sourceforge.net%2F&ts=1292529005&use_mirror=switch
     388  tar xzf flex-2.5.35.tar.gz
     389  cd flex-2.5.35
     390  ./configure --prefix=/usr
     391  make
     392  make install
     393
     394Using the curl provided in the CentOS distribution will produce a ZOO-Kernel unable to run any
     395Service. Indeed, some segmentation faults occur when trying to run ``Execute`` requests on the ZOO-Kernel,
     396compiling the ZOO-Kernel setting ``USE_GDB`` flag in the ``CFLAGS`` of your ``Makefile`` will let you run
     397ZOO-Kernel from gdb and be able to get more information on what is going wrong with your ZOO-Kernel.
     398Doing this we can figure out that code on `line 173 <http://zoo-project.org/trac/browser/trunk/zoo-kernel/ulinet.c#L173>`__
     399and `line 175 <http://zoo-project.org/trac/browser/trunk/zoo-kernel/ulinet.c#L175>`__ have to be commented in the
     400``ulinet.c`` file to get a ZOO-Kernel working using the curl available in CentOS (curl version 7.15.5).
     401If you don't apply the modification, you will get an error from a gdb session pointing
     402segfault in ``Curl_cookie_clearall``.
     403
     404You can optionally compile then install curl from source :
     405
     406::
     407
     408  wget http://curl.haxx.se/download/curl-7.21.3.tar.bz2
     409  tar xjf curl-7.21.3.tar.bz2
     410  cd curl-7.21.3
     411  ./configure --prefix=/usr
     412  make
     413  make install
     414
     415Compile then install Python :
     416
     417  wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2
     418  tar xjf Python-2.6.6.tar.bz2
     419  cd Python-2.6.6
     420  ./configure
     421  make
     422  make install
     423
     424Compile then install your own GDAL library :
     425
     426  wget http://download.osgeo.org/gdal/gdal-1.7.3.tar.gz
     427  tar xzf gdal-1.7.3.tar.gz
     428  cd gdal-1.7.3
     429  ./configure  # add your options here
     430  make
     431  make install
     432
     433Install the Sun JAVA SDK into ``/usr/share`` then use the following command to ensure that the ``libjvm.so``
     434will be found at runtime from any context.
     435
     436::
     437
     438  echo /usr/share/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client/ >> /etc/ld.so.conf.d/jvm.conf
     439  ldconfig
     440
     441Compile ZOO-Kernel and ZOO-Services
     442^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     443
     444Compile then install ZOO-Kernel and your first ZOO-Services.
     445
     446First of all, compile the cgic library providen in the SVN source tree:
     447
     448::
     449
     450  svn co http://svn.zoo-project.org/svn/trunk zoo-project
     451  cd zoo-project/thirds/cgic206
     452  make
     453
     454Compile then install ZOO-Kernel.
     455
     456::
     457
     458  cd ../../zoo-kernel
     459  ./configure --with-java=/usr/share/jdk1.6.0_23/ --with-python
     460  make zoo_loader.cgi
     461  cp main.cfg /var/www/cgi-bin/
     462  cp  zoo_loader.cgi /var/www/cgi-bin/
     463
     464Compile then deploy your first ZOO-ServicesProviders (simple HelloPy, line 1 and 2, and the OGR base-vect-ops
     465ServiceProvider, line 3 to 6):
     466
     467::
     468
     469  cp ../zoo-services/hello-py/cgi-env/*.zcfg /var/www/cgi-bin/
     470  cp ../zoo-services/hello-py/test_service.py /var/www/cgi-bin/
     471  cd ../ogr/base-vect-ops/
     472  make
     473  cp ./cgi-env/* /var/www/cgi-bin/
     474  vi /var/www/cgi-bin/main.cfg --> set your own informations here
     475
     476To ensure that the ``libjvm.so`` will be found from apache, please restart it :
     477
     478::
     479
     480  /etc/init.d/httpd restart
     481
     482Testing your ZOO-Kernel
     483^^^^^^^^^^^^^^^^^^^^^^^
     484
     485Test your ZOO-Kernel from command line:
     486
     487::
     488
     489  cd /var/www/cgi-bin
     490  ./zoo_loader.cgi "request=Execute&service=WPS&version=1.0.0&Identifier=HelloPy&DataInputs=a=Djay"
     491  ./zoo_loader.cgi "request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=BufferDistance=1@datat
     492
    337493
    338494WIN32
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

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