Changes between Initial Version and Version 1 of ZooDocumentation/ZOOKernel/CentOS_installation


Ignore:
Timestamp:
Dec 17, 2010, 12:04:19 AM (14 years ago)
Author:
djay
Comment:

Test using lineno

Legend:

Unmodified
Added
Removed
Modified
  • ZooDocumentation/ZOOKernel/CentOS_installation

    v1 v1  
     1= !HowTo Install ZOO-Kernel on CentOS 5.5 =
     2
     3== Requirements ==
     4
     5Installing some standard tools to be able to run ZOO-Kernel on your platform :
     6
     7{{{
     8#!sh
     9yum install apache2
     10yum install build-essentials
     11yum install gcc-c++
     12yum install zlib-devel
     13yum install libxml2-devel
     14yum install bison
     15yum install openssl
     16yum install python-devel
     17yum install subversion
     18}}}
     19
     20Compile then install FastCGI library from source
     21
     22{{{
     23#!sh
     24wget http://www.fastcgi.com/dist/fcgi.tar.gz
     25tar xzf fcgi-2.4.0.tar.gz
     26./configure
     27make
     28make install
     29echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf
     30ldconfig
     31}}}
     32
     33Compile then install the autoconf tools :
     34{{{
     35#!sh
     36wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
     37tar xzf autoconf-latest.tar.gz
     38./configure --prefix=/usr
     39make
     40make install
     41}}}
     42
     43Compile then install the flex tool :
     44{{{
     45#!sh
     46wget 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
     47tar xzf flex-2.5.35.tar.gz
     48cd flex-2.5.35
     49./configure --prefix=/usr
     50make
     51make install
     52}}}
     53
     54Using the curl providen in the CentOS distribution will produce ZOO-Kernel unable to run any Service. Indeed, some segmentation fault occurs when trying to run Execute request on the ZOO-Kernel, compiling the ZOO-Kernel seting USE_GDB flag in the CFLAGS of your Makefile will let you run ZOO-Kernel from gdb and be able to get more information on what is
     55{{{
     56#!sh
     57wget http://curl.haxx.se/download/curl-7.21.3.tar.bz2
     58tar xjf curl-7.21.3.tar.bz2
     59cd curl-7.21.3
     60./configure --prefix=/usr
     61make
     62make install
     63}}}
     64
     65Compile then install Python :
     66
     67{{{
     68#!sh
     69wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2
     70tar xjf Python-2.6.6.tar.bz2
     71cd Python-2.6.6
     72./configure
     73make
     74make install
     75}}}
     76
     77
     78Compile then install your own GDAL library :
     79
     80{{{
     81#!sh
     82wget http://download.osgeo.org/gdal/gdal-1.7.3.tar.gz
     83tar xzf gdal-1.7.3.tar.gz
     84cd gdal-1.7.3
     85./configure  # add your options here
     86make
     87make install
     88}}}
     89
     90Install the Sun JAVA SDK into {{{/usr/share}}} then use the following command to ensure that the {{{libjvm.so}}} will be found at runtime from any context.
     91{{{
     92#!sh
     93echo /usr/share/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client/ >> /etc/ld.so.conf.d/jvm.conf
     94ldconfig
     95}}}
     96
     97== Compile ZOO-Kernel and ZOO-Services ==
     98
     99Compile then install ZOO-Kernel and your first ZOO-Services.
     100
     101First of all, compile the cgic library providen in the SVN source tree:
     102{{{
     103#!sh
     104svn co http://svn.zoo-project.org/svn/trunk zoo-project
     105cd zoo-project/thirds/cgic206
     106make
     107}}}
     108
     109Compile then install ZOO-Kernel.
     110{{{
     111#!sh
     112cd ../../zoo-kernel
     113./configure --with-java=/usr/share/jdk1.6.0_23/ --with-python
     114make zoo_loader.cgi
     115cp main.cfg /var/www/cgi-bin/
     116cp  zoo_loader.cgi /var/www/cgi-bin/
     117}}}
     118
     119Compile then deploy your first ZOO-!ServicesProviders (simple !HelloPy and the OGR base-vect-ops !ServiceProvider):
     120{{{
     121#!Lineno
     122#!c
     123cp ../zoo-services/hello-py/cgi-env/*.zcfg /var/www/cgi-bin/
     124cp ../zoo-services/hello-py/test_service.py /var/www/cgi-bin/
     125cd ../ogr/base-vect-ops/
     126make
     127cp ./cgi-env/* /var/www/cgi-bin/
     128vi /var/www/cgi-bin/main.cfg --> set your own informations here
     129}}}
     130
     131To ensure that the libjvm.so will be found from apache, please restart it :
     132
     133{{{
     134#!sh
     135/etc/init.d/httpd restart
     136}}}
     137Testing your ZOO-Kernel.
     138
     139{{{
     140#!sh
     141cd /var/www/cgi-bin
     142./zoo_loder.cgi "request=Execute&service=WPS&version=1.0.0&Identifier=HelloPy&DataInputs=a=Djay"
     143./zoo_loader.cgi "request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=BufferDistance=1@datatype=interger;InputPolygon=Reference@xlink:href=http%3A%2F%2Fwww.zoo-project.org%3A8082%2Fgeoserver%2Fows%3FSERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dtopp%3Astates%26SRS%3DEPSG%3A4326%26FeatureID%3Dstates.15&RawDataOutput=Result@mimeType=application/json"
     144}}}
     145

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