| 1 | .. _install-centos: |
|---|
| 2 | |
|---|
| 3 | Installation on CentOS |
|---|
| 4 | ====================== |
|---|
| 5 | |
|---|
| 6 | Use the following instructions to install `ZOO-Project <http://zoo-project.org>`__ on CentOS distributions. |
|---|
| 7 | |
|---|
| 8 | Prerequisites |
|---|
| 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 | |
|---|
| 24 | Installation |
|---|
| 25 | ---------------------- |
|---|
| 26 | |
|---|
| 27 | Compile 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 | |
|---|
| 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 | |
|---|