[Zoo-discuss] Zoo-project installation and running on Centos-6

Francesco Barchetta francesco.barchetta at terradue.com
Fri Dec 18 01:47:09 PST 2015


Hello!

In the context of our Earth Observation projects my company (Terradue UK) would like to adopt your implementation of WPS, .

The typical environment where to install the server is a VM with CentOS release 6.7 x86_64 .

INSTALLATION:

From the official documentation:

http://zoo-project.org/docs/install/centos.html

If I've tried to follow the list of commands I quickly found some issue or incorrect steps:

yum install apache2
do you mean httpd?
yum install build-essentials
do you mean yum groupinstall "Development Tools” ?
yum install gcc-c++ 
yum install libxml2-devel 
yum install zlib-devel 
yum install bison 
yum install openssl   
yum install python-devel
yum install subversion 

Additional prerequisites found:

yum install libxslt-devel.x86_64 
yum install libcurl-devel 
yum install gdal-devel 
yum install proj-devel.x86_64 
yum install libuuid-devel
yum install openssl-devel

FOR GDAL 1.8.0 (otherwise zoo-kernel will complain about VSILFILE)

wget http://download.osgeo.org/gdal/gdal-1.8.0.tar.gz
tar xzf gdal-1.8.0.tar.gz
cd gdal-1.8.0
./configure  # add your options here
make
make install

TO INSTALL FASTCGI

wget http://www.fastcgi.com/dist/fcgi.tar.gz
tar xzf fcgi.tar.gz
cd fcgi-2.4.1-SNAP-0311112127/	

PATCH (from http://stackoverflow.com/questions/4577453/fcgio-cpp50-error-eof-was-not-declared-in-this-scope):

	--- include/fcgio.h 2012-01-23 15:23:51.136063795 +0000
	+++ include/fcgio.h 2012-01-23 15:22:19.057221383 +0000
	@@ -31,6 +31,7 @@
 	#define FCGIO_H

	 #include <iostream>
	+#include <stdio.h>

	 #include "fcgiapp.h"

./configure
make
make install
echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf
ldconfig

TO INSTALL autoconf tools (OK)

TO INSTALL FLEX TOOL (OK)

CURL:

To avoid the installation of a different version of Curl, I want to follow the guide about changing the file ulinet.c but the link to the code is broken and:

line 173 is :

printf("\n**[PROXY SETTINGS DETECTION %s (%d) %s:%li (%s)]**\n",proto,proxy_enabled,(char*)proxy_host,proxy_port,buffer);

line 175 is a white line

Should I comment these lines?

Anyway our base line version is 7.19.7. Is it good?

INSTALL ZOO-KERNEL 
Since this section is totally missing I got inspiration from the previous version (still incomplete and not working):

http://www.zoo-project.org/docs/kernel/install-centos.html

svn co http://svn.zoo-project.org/svn/trunk zoo-project
cd zoo-project/thirds/cgic206
edit file Makefile in order to set the current fgci path adding:
	LIBS= -L./ -lcgic /usr/local/lib/libfcgi.so
make 
cd ../../zoo-project/zoo-kernel
autoconf
./configure --with-java=/usr/java/jdk1.6.0_35/ --with-python --with-gdal_config=/usr/bin/gdal-config
make zoo_loader.cgi
make install
cp main.cfg /var/www/cgi-bin/
cp zoo_loader.cgi /var/www/cgi-bin/

In httpd.conf I have to add:
SetEnv LD_LIBRARY_PATH /usr/local/lib/

Now the GetCapabilities and DescribeProcess calls work fine.

EXECUTE:

HelloPy works fine.

HelloWorldJava is not working:

From the Browser => 500 Internal Server Error

Form the command line:

 ./zoo_loader.cgi "Service=WPS&request=Execute&service=WPS&version=1.0.0&Identifier=HelloWorldJava&DataInputs=S=Test"Content-Type: text/xml; charset=UTF-8
Status: 501 Internal Server Error

Segmentation fault


With gdb:

(gdb) run "Service=WPS&request=Execute&service=WPS&version=1.0.0&Identifier=HelloWorldJava&DataInputs=S=Test"
Starting program: /var/www/cgi-bin/zoo_loader.cgi "Service=WPS&request=Execute&service=WPS&version=1.0.0&Identifier=HelloWorldJava&DataInputs=S=Test"
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe7283700 (LWP 29445)]
[New Thread 0x7fffe7182700 (LWP 29446)]
[New Thread 0x7fffe6b8b700 (LWP 29447)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff500204a in frame::frame(long*, long*) () from /usr/java/jdk1.6.0_35/jre/lib/amd64/server/libjvm.so


CONCLUSIONS

I hope that my experience could help you to improve the installation procedure description and I hope you could help me to find out the reason of the failed execution.

Best Regards,

Francesco Barchetta

Terradue UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20151218/c0abafff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2014 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20151218/c0abafff/attachment.bin>


More information about the Zoo-discuss mailing list