<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello!<div><br></div><div>In the context of our Earth Observation projects my company (Terradue UK) would like to adopt your implementation of WPS, .</div><div><br></div><div>The typical environment where to install the server is a VM with CentOS release 6.7 x86_64 .</div><div><br></div><div>INSTALLATION:</div><div><br></div><div>From the official documentation:</div><div><br></div><div><a href="http://zoo-project.org/docs/install/centos.html">http://zoo-project.org/docs/install/centos.html</a></div><div><br></div><div>If I've tried to follow the list of commands I quickly found some issue or incorrect steps:</div><div><br></div><div>yum install apache2</div><div><font color="#b51a00">do you mean httpd?</font></div><div>yum install build-essentials</div><div><font color="#b51a00">do you mean yum groupinstall "Development Tools” ?</font></div><div><div>yum install gcc-c++ </div><div>yum install libxml2-devel </div><div>yum install zlib-devel </div><div>yum install bison </div><div>yum install openssl </div><div>yum install python-devel</div><div>yum install subversion </div></div><div><br></div><div><font color="#b51a00">Additional prerequisites found:</font></div><div><font color="#b51a00"><br></font></div><div><div style="color: rgb(181, 26, 0);">yum install libxslt-devel.x86_64 </div><div><font color="#b51a00">yum install libcurl-devel </font></div><div style="color: rgb(181, 26, 0);">yum install gdal-devel </div><div style="color: rgb(181, 26, 0);">yum install proj-devel.x86_64 </div><div style="color: rgb(181, 26, 0);">yum install libuuid-devel</div><div><font color="#b51a00">yum install openssl-devel</font></div><div style="color: rgb(181, 26, 0);"><br></div><div>FOR GDAL<font color="#e32400"> 1.8.0 (otherwise zoo-kernel will complain about VSILFILE)</font></div><div style="color: rgb(181, 26, 0);"><br></div><div><div>wget <a href="http://download.osgeo.org/gdal/gdal-">http://download.osgeo.org/gdal/gdal-</a><font color="#b51a00">1.8.0</font>.tar.gz</div><div>tar xzf gdal-<font color="#b51a00">1.8.0</font>.tar.gz</div><div><font color="#b51a00">cd gdal-1.8.0</font></div><div>./configure # add your options here</div><div>make</div><div>make install</div></div></div><div><br></div><div>TO INSTALL FASTCGI</div><div><br></div><div><div>wget <a href="http://www.fastcgi.com/dist/fcgi.tar.gz">http://www.fastcgi.com/dist/fcgi.tar.gz</a></div><div>tar xzf fcgi.tar.gz</div><div><font color="#b51a00">cd fcgi-2.4.1-SNAP-0311112127/</font><span class="Apple-tab-span" style="white-space:pre"> </span></div></div><div><br></div><div><div><font color="#b51a00">PATCH (from <a href="http://stackoverflow.com/questions/4577453/fcgio-cpp50-error-eof-was-not-declared-in-this-scope">http://stackoverflow.com/questions/4577453/fcgio-cpp50-error-eof-was-not-declared-in-this-scope</a>):</font></div><div><font color="#b51a00"><br></font></div><div><font color="#b51a00"><span class="Apple-tab-span" style="white-space:pre"> </span>--- include/fcgio.h 2012-01-23 15:23:51.136063795 +0000</font></div><div><font color="#b51a00"><span class="Apple-tab-span" style="white-space:pre"> </span>+++ include/fcgio.h 2012-01-23 15:22:19.057221383 +0000</font></div><div><font color="#b51a00"><span class="Apple-tab-span" style="white-space:pre"> </span>@@ -31,6 +31,7 @@</font></div><div><font color="#b51a00"> <span class="Apple-tab-span" style="white-space:pre"> </span>#define FCGIO_H</font></div><div><font color="#b51a00"><br></font></div><div><font color="#b51a00"><span class="Apple-tab-span" style="white-space:pre"> </span> #include <iostream></font></div><div><font color="#b51a00"><span class="Apple-tab-span" style="white-space:pre"> </span>+#include <stdio.h></font></div><div><font color="#b51a00"><br></font></div><div><font color="#b51a00"><span class="Apple-tab-span" style="white-space:pre"> </span> #include "fcgiapp.h"</font></div></div><div><br></div><div><div>./configure</div><div>make</div><div>make install</div><div>echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf</div><div>ldconfig</div></div><div><br></div><div>TO INSTALL autoconf tools (OK)</div><div><br></div><div><div>TO INSTALL FLEX TOOL (OK)</div></div><div><br></div><div>CURL:</div><div><br></div><div>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:</div><div><br></div><div>line 173 is :</div><div><br></div><div>printf("\n**[PROXY SETTINGS DETECTION %s (%d) %s:%li (%s)]**\n",proto,proxy_enabled,(char*)proxy_host,proxy_port,buffer);</div><div><br></div><div>line 175 is a white line</div><div><br></div><div>Should I comment these lines?</div><div><br></div><div>Anyway our base line version is 7.19.7. Is it good?</div><div><br></div><div><div><font color="#b51a00">INSTALL ZOO-KERNEL </font></div><div><font color="#b51a00">Since this section is totally missing I got inspiration from the previous version (still incomplete and not working):</font></div><div><font color="#b51a00"><br></font></div><div><font color="#b51a00"><a href="http://www.zoo-project.org/docs/kernel/install-centos.html">http://www.zoo-project.org/docs/kernel/install-centos.html</a></font></div><div><font color="#b51a00"><br></font></div><div>svn co <a href="http://svn.zoo-project.org/svn/trunk">http://svn.zoo-project.org/svn/trunk</a> zoo-project</div><div>cd zoo-project/thirds/cgic206</div><div><font color="#b51a00">edit file Makefile in order to set the current fgci path adding:</font></div><div><font color="#b51a00"><span class="Apple-tab-span" style="white-space:pre"> </span>LIBS= -L./ -lcgic /usr/local/lib/libfcgi.so</font></div><div>make </div><div><font color="#b51a00">cd ../../zoo-project/zoo-kernel</font></div><div><font color="#b51a00">autoconf</font></div><div>./configure --with-java=/usr/java/jdk1.6.0_35/ --with-python <font color="#b51a00">--with-gdal_config=/usr/bin/gdal-config</font></div><div>make zoo_loader.cgi</div><div><font color="#b51a00">make install</font></div><div>cp main.cfg /var/www/cgi-bin/</div><div>cp zoo_loader.cgi /var/www/cgi-bin/</div></div><div><br></div><div><font color="#b51a00">In httpd.conf I have to add:</font></div><div><font color="#b51a00">SetEnv LD_LIBRARY_PATH /usr/local/lib/</font></div><div><font color="#b51a00"><br></font></div><div>Now the GetCapabilities and DescribeProcess calls work fine.</div><div><br></div><div>EXECUTE:</div><div><br></div><div>HelloPy works fine.</div><div><br></div><div>HelloWorldJava is not working:</div><div><br></div><div>From the Browser => 500 Internal Server Error</div><div><br></div><div>Form the command line:</div><div><br></div><div><div> ./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</div><div>Status: 501 Internal Server Error</div><div><br></div><div>Segmentation fault</div></div><div><br></div><div><br></div><div>With gdb:</div><div><br></div><div><div>(gdb) run "Service=WPS&request=Execute&service=WPS&version=1.0.0&Identifier=HelloWorldJava&DataInputs=S=Test"</div><div>Starting program: /var/www/cgi-bin/zoo_loader.cgi "Service=WPS&request=Execute&service=WPS&version=1.0.0&Identifier=HelloWorldJava&DataInputs=S=Test"</div><div>[Thread debugging using libthread_db enabled]</div><div>[New Thread 0x7fffe7283700 (LWP 29445)]</div><div>[New Thread 0x7fffe7182700 (LWP 29446)]</div><div>[New Thread 0x7fffe6b8b700 (LWP 29447)]</div><div><br></div><div>Program received signal SIGSEGV, Segmentation fault.</div><div>0x00007ffff500204a in frame::frame(long*, long*) () from /usr/java/jdk1.6.0_35/jre/lib/amd64/server/libjvm.so</div></div><div><br></div><div><br></div><div>CONCLUSIONS</div><div><br></div><div>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.</div><div><br></div><div>Best Regards,</div><div><br></div><div>Francesco Barchetta</div><div><br></div><div>Terradue UK</div></body></html>