source: trunk/docs/kernel/install-centos.txt @ 272

Last change on this file since 272 was 272, checked in by nbozon, 13 years ago

add keywords with svn propset

  • Property svn:keywords set to HeadURL Date Author Id Rev
File size: 4.6 KB
Line 
1.. _kernel-installation-centos:
2
3CentOS
4======
5
6:Last Updated: $Date: 2011-07-16 13:26:31 +0000 (Sat, 16 Jul 2011) $
7:Id:    $Id: install-centos.txt 272 2011-07-16 13:26:31Z nbozon $
8:Author: $Author: nbozon $
9:HeadURL: $HeadURL: trunk/docs/kernel/install-centos.txt $
10
11.. contents:: Table of Contents
12    :depth: 2
13    :backlinks: top
14
15.. note::
16   This documentation was created thanks to Guillaume Sueur from Neogeo Technologies which took time to test
17   installing the ZOO-Kernel on a CentOS 5.5 environment.
18
19Requirements
20------------
21
22Install some standard tools to be able to run ZOO-Kernel on your platform :
23
24::
25
26  yum install apache2
27  yum install build-essentials
28  yum install gcc-c++
29  yum install zlib-devel
30  yum install libxml2-devel
31  yum install bison
32  yum install openssl
33  yum install python-devel
34  yum install subversion
35
36Compile then install FastCGI library from source
37
38::
39
40  wget http://www.fastcgi.com/dist/fcgi.tar.gz
41  tar xzf fcgi-2.4.0.tar.gz
42  ./configure
43  make
44  make install
45  echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf
46  ldconfig
47
48Compile then install the autoconf tools :
49
50::
51
52  wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
53  tar xzf autoconf-latest.tar.gz
54  ./configure --prefix=/usr
55  make
56  make install
57
58Compile then install the flex tool :
59
60::
61
62  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
63  tar xzf flex-2.5.35.tar.gz
64  cd flex-2.5.35
65  ./configure --prefix=/usr
66  make
67  make install
68
69Using the curl provided in the CentOS distribution will produce a ZOO-Kernel unable to run any
70Service. Indeed, some segmentation faults occur when trying to run ``Execute`` requests on the ZOO-Kernel,
71compiling the ZOO-Kernel setting ``USE_GDB`` flag in the ``CFLAGS`` of your ``Makefile`` will let you run
72ZOO-Kernel from gdb and be able to get more information on what is going wrong with your ZOO-Kernel.
73Doing this we can figure out that code on `line 173 <http://zoo-project.org/trac/browser/trunk/zoo-kernel/ulinet.c#L173>`__
74and `line 175 <http://zoo-project.org/trac/browser/trunk/zoo-kernel/ulinet.c#L175>`__ have to be commented in the
75``ulinet.c`` file to get a ZOO-Kernel working using the curl available in CentOS (curl version 7.15.5).
76If you don't apply the modification, you will get an error from a gdb session pointing
77segfault in ``Curl_cookie_clearall``.
78
79You can optionally compile then install curl from source :
80
81::
82
83  wget http://curl.haxx.se/download/curl-7.21.3.tar.bz2
84  tar xjf curl-7.21.3.tar.bz2
85  cd curl-7.21.3
86  ./configure --prefix=/usr
87  make
88  make install
89
90Compile then install Python :
91
92::
93 
94  wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2
95  tar xjf Python-2.6.6.tar.bz2
96  cd Python-2.6.6
97  ./configure
98  make
99  make install
100
101Compile then install your own GDAL library :
102
103::
104
105  wget http://download.osgeo.org/gdal/gdal-1.7.3.tar.gz
106  tar xzf gdal-1.7.3.tar.gz
107  cd gdal-1.7.3
108  ./configure  # add your options here
109  make
110  make install
111
112Install the Sun JAVA SDK into ``/usr/share`` then use the following command to ensure that the ``libjvm.so``
113will be found at runtime from any context.
114
115::
116
117  echo /usr/share/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client/ >> /etc/ld.so.conf.d/jvm.conf
118  ldconfig
119
120Compile ZOO-Kernel and ZOO-Services
121-----------------------------------
122
123Compile then install ZOO-Kernel and your first ZOO-Services.
124
125First of all, compile the cgic library providen in the SVN source tree:
126
127::
128
129  svn co http://svn.zoo-project.org/svn/trunk zoo-project
130  cd zoo-project/thirds/cgic206
131  make
132
133Compile then install ZOO-Kernel.
134
135::
136
137  cd ../../zoo-kernel
138  ./configure --with-java=/usr/share/jdk1.6.0_23/ --with-python
139  make zoo_loader.cgi
140  cp main.cfg /var/www/cgi-bin/
141  cp  zoo_loader.cgi /var/www/cgi-bin/
142
143Compile then deploy your first ZOO-ServicesProviders (simple HelloPy, line 1 and 2, and the OGR base-vect-ops
144ServiceProvider, line 3 to 6):
145
146::
147
148  cp ../zoo-services/hello-py/cgi-env/*.zcfg /var/www/cgi-bin/
149  cp ../zoo-services/hello-py/test_service.py /var/www/cgi-bin/
150  cd ../ogr/base-vect-ops/
151  make
152  cp ./cgi-env/* /var/www/cgi-bin/
153  vi /var/www/cgi-bin/main.cfg --> set your own informations here
154
155To ensure that the ``libjvm.so`` will be found from apache, please restart it :
156
157::
158
159  /etc/init.d/httpd restart
160
161Testing your ZOO-Kernel
162-----------------------
163
164Test your ZOO-Kernel from command line:
165
166::
167
168  cd /var/www/cgi-bin
169  ./zoo_loader.cgi "request=Execute&service=WPS&version=1.0.0&Identifier=HelloPy&DataInputs=a=Djay"
170  ./zoo_loader.cgi "request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=BufferDistance=1@datat
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