source: trunk/docs/install/centos.rst @ 725

Last change on this file since 725 was 725, checked in by djay, 4 years ago

Fix issue with rst files displayed from Trac. Fix strings to be translated. Always use the same string in all messages.

  • Property svn:keywords set to Date Author
  • Property svn:mime-type set to text/plain
File size: 2.9 KB
Line 
1.. _install-centos:
2
3Installation on CentOS
4======================
5
6Use the following instructions to install `ZOO-Project <http://zoo-project.org>`__ on CentOS distributions.
7
8Prerequisites
9----------------------
10
11.. code-block:: guess
12
13  yum install apache2
14  yum install build-essentials
15  yum install gcc-c++
16  yum install zlib-devel
17  yum install libxml2-devel
18  yum install bison
19  yum install openssl
20  yum install python-devel
21  yum install subversion
22
23
24Installation
25----------------------
26
27Compile then install FastCGI library from source
28
29::
30
31  wget http://www.fastcgi.com/dist/fcgi.tar.gz
32  tar xzf fcgi-2.4.0.tar.gz
33  ./configure
34  make
35  make install
36  echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf
37  ldconfig
38
39Compile then install the autoconf tools :
40
41::
42
43  wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
44  tar xzf autoconf-latest.tar.gz
45  ./configure --prefix=/usr
46  make
47  make install
48
49Compile then install the flex tool :
50
51::
52
53  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
54  tar xzf flex-2.5.35.tar.gz
55  cd flex-2.5.35
56  ./configure --prefix=/usr
57  make
58  make install
59
60Using the curl provided in the CentOS distribution will produce a ZOO-Kernel unable to run any
61Service. Indeed, some segmentation faults occur when trying to run ``Execute`` requests on the ZOO-Kernel,
62compiling the ZOO-Kernel setting ``USE_GDB`` flag in the ``CFLAGS`` of your ``Makefile`` will let you run
63ZOO-Kernel from gdb and be able to get more information on what is going wrong with your ZOO-Kernel.
64Doing this we can figure out that code on `line 173 <http://zoo-project.org/trac/browser/trunk/zoo-kernel/ulinet.c#L173>`__
65and `line 175 <http://zoo-project.org/trac/browser/trunk/zoo-kernel/ulinet.c#L175>`__ have to be commented in the
66``ulinet.c`` file to get a ZOO-Kernel working using the curl available in CentOS (curl version 7.15.5).
67If you don't apply the modification, you will get an error from a gdb session pointing
68segfault in ``Curl_cookie_clearall``.
69
70You can optionally compile then install curl from source :
71
72::
73
74  wget http://curl.haxx.se/download/curl-7.21.3.tar.bz2
75  tar xjf curl-7.21.3.tar.bz2
76  cd curl-7.21.3
77  ./configure --prefix=/usr
78  make
79  make install
80
81Compile then install Python :
82
83::
84 
85  wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2
86  tar xjf Python-2.6.6.tar.bz2
87  cd Python-2.6.6
88  ./configure
89  make
90  make install
91
92Compile then install your own GDAL library :
93
94::
95
96  wget http://download.osgeo.org/gdal/gdal-1.7.3.tar.gz
97  tar xzf gdal-1.7.3.tar.gz
98  cd gdal-1.7.3
99  ./configure  # add your options here
100  make
101  make install
102
103Install the Sun JAVA SDK into ``/usr/share`` then use the following command to ensure that the ``libjvm.so``
104will be found at runtime from any context.
105
106::
107
108  echo /usr/share/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client/ >> /etc/ld.so.conf.d/jvm.conf
109  ldconfig
110 
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