Changeset 749 for trunk/docs


Ignore:
Timestamp:
Jan 5, 2016, 9:05:54 AM (9 years ago)
Author:
djay
Message:

Update the Centos installation procedure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/install/centos.rst

    r725 r749  
    99----------------------
    1010
     11First you should add the `ELGIS Repository <http://elgis.argeo.org>`__ then install the
     12dependencies by using `yum` commands.
     13
    1114.. code-block:: guess
    1215
    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
     16  rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm
     17  rpm -Uvh \
     18    http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
     19  wget\
     20    http://proj.badc.rl.ac.uk/cedaservices/raw-attachment/ticket/670/armadillo-3.800.2-1.el6.x86_64.rpm
     21  yum install armadillo-3.800.2-1.el6.x86_64.rpm
     22  yum install hdf5.so.6
     23  yum install gcc-c++ zlib-devel libxml2-devel bison openssl \
     24    python-devel subversion libxslt-devel libcurl-devel \
     25    gdal-devel proj-devel libuuid-devel openssl-devel fcgi-devel
     26  yum install java-1.7.0-openjdk-devel
    2227
    2328
     
    2530----------------------
    2631
    27 Compile then install FastCGI library from source
     32Now refer to general instructions from :ref:`install-installation` to
     33setup your ZOO-Kernel and the ZOO-Services of your choice.
    2834
    29 ::
     35.. note::
     36   In case you use the Java support, please, make sure to use the
     37   correct version of both java and javac using the following
     38   commands:
     39   
     40   .. code-block:: guess
     41   
     42     update-alternatives --config java
     43     update-alternatives --config javac
    3044
    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 
    39 Compile 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 
    49 Compile 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 
    60 Using the curl provided in the CentOS distribution will produce a ZOO-Kernel unable to run any
    61 Service. Indeed, some segmentation faults occur when trying to run ``Execute`` requests on the ZOO-Kernel,
    62 compiling the ZOO-Kernel setting ``USE_GDB`` flag in the ``CFLAGS`` of your ``Makefile`` will let you run
    63 ZOO-Kernel from gdb and be able to get more information on what is going wrong with your ZOO-Kernel.
    64 Doing this we can figure out that code on `line 173 <http://zoo-project.org/trac/browser/trunk/zoo-kernel/ulinet.c#L173>`__
    65 and `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).
    67 If you don't apply the modification, you will get an error from a gdb session pointing
    68 segfault in ``Curl_cookie_clearall``.
    69 
    70 You 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 
    81 Compile 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 
    92 Compile 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 
    103 Install the Sun JAVA SDK into ``/usr/share`` then use the following command to ensure that the ``libjvm.so``
    104 will 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 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