ZooDocumentation: ZOOKernel: DebianLike_installation - ZOO-Project/ZOO-Project GitHub Wiki
- Ubuntu 10.4 with ZOO Virtual Image
- root: ZOO.test
Tested on Debian Squeeze, Ubuntu 10.04 and Ubuntu 10.10
- install some dependencies
- download zoo source
- install cgic from packages
- change the path of installation
- 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 ../../dist//include --> cp cgic.h /usr/include
- @echo libcgic.a is in ../../dist/lib and cgic.h is in ../../dist//include. --> @echo libcgic.a is in /usr/lib and cgic.h is in /usr/include.
- compile
- install, I prefer use checkinstall for have a simple remove in the future
- go to kernel path
- create configure file
- run configure, in ubuntu 10.04 there isn't libmozjs-dev, for use js, you can compile SpiderMonkey or use xulrunner-dev package which inclue SpiderMonkey, for use the php read ZooKernel/Embed/PHP#ConfigureandInstallPHPEmbedlibrary
- JS_CPPFLAGS="-I$JSHOME/include/js" --> JS_CPPFLAGS="-I$JSHOME/include"
- JS_LDFLAGS="-L$JSHOME/lib -ljs -lm" --> JS_LDFLAGS="-L$JSHOME/lib -lmozjs -lm"
- JS_LIB="js" --> JS_LIB="mozjs"
- compile
- copy all the file inside the path of cgi-bin
sudo cp zoo_loader.cgi /usr/lib/cgi-bin
- Install ZOO ServiceProvider
sudo cp ../zoo-services/hello-py/*.py /usr/lib/cgi-bin/
- change some path in the main.cfg
- serverAddress = http://127.0.0.1
- providerSite = http://127.0.0.1
- try the installation
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=