ZooDocumentation/ZOOKernel/DebianLike_installation

Version 8 (modified by yoshida.daisuke, 9 years ago)

--

Ubuntu 10.04

*Ubuntu 10.4 with ZOO Virtual Image

http://www.zoo-project.org/Ubuntu10.4_ZOO.zip # root: ZOO.test

#install some dependencies
sudo apt-get install flex bison libfcgi-dev libxml2 curl openssl autoconf checkinstall

#download zoo source
svn checkout http://svn.zoo-project.org/svn/trunk zoo-project

#install cgic from packages
cd zoo-project/thirds/cgic206/

#change the path of installation
nano Makefile

  • LIBS=-L./ -lcgic ../fcgi-2.4.0/libfcgi/.libs/libfcgi.a --> LIBS=/path/to/libfcgi.a
  • cp libcgic.a ../../dist/lib --> cp libcgic.a /usr/lib
  • cp cgic.h ../../distinclude --> cp cgic.h /usr/include
  • @echo libcgic.a is in ../../dist/lib and cgic.h is in ../../distinclude. --> @echo libcgic.a is in /usr/lib and cgic.h is in /usr/include.

#compile
make

#install, I prefer use checkinstall for have a simple remove in the future
sudo make install or better sudo checkinstall -D

#go to kernel path
cd ../../zoo-kernel/

#create configure file
autoconf

#run configure, in ubuntu 10.04 there isn't libmozjs-dev, for use js it must compile SpinderMonkey?, for use the php read ZooKernel/Embed/PHP
./configure --with-php=no --with-java=/path/to/java

#compile
make zoo_loader.cgi

#copy all the file inside the path of cgi-bin
sudo cp main.cfg /usr/lib/cgi-bin

sudo cp zoo_loader.cgi /usr/lib/cgi-bin

# Install ZOO ServiceProvider?
sudo cp ../zoo-services/hello-py/cgi-env/*.zcfg /usr/lib/cgi-bin

sudo cp ../zoo-services/hello-py/*.py /usr/lib/cgi-bin/

#change some path in the main.cfg sudo nano /usr/lib/cgi-bin/main.cfg

#try the installation
http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=GetCapabilities&Version=1.0.0
http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy
http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=myname

if you have some problem in the execute request add to main.cfg

[env]
PYTHONPATH=<YOUR_PYTHONPATH>

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