| 1 | = Ubuntu 10.04 = |
| 2 | |
| 3 | #install some dependencies[[BR]] |
| 4 | sudo apt-get install flex bison libfcgi-dev libxml2 curl openssl autoconf checkinstall |
| 5 | |
| 6 | #download zoo source[[BR]] |
| 7 | svn checkout http://svn.zoo-project.org/svn/trunk zoo-project |
| 8 | |
| 9 | #install cgic from packages[[BR]] |
| 10 | cd zoo-project/thirds/cgic206/ |
| 11 | |
| 12 | #change the path of installation[[BR]] |
| 13 | nano Makefile |
| 14 | * LIBS=-L./ -lcgic ../fcgi-2.4.0/libfcgi/.libs/libfcgi.a --> LIBS=/path/to/libfcgi.a |
| 15 | * cp libcgic.a ../../dist/lib --> cp libcgic.a /usr/lib |
| 16 | * cp cgic.h ../../dist//include --> cp cgic.h /usr/include |
| 17 | * @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. |
| 18 | |
| 19 | #compile[[BR]] |
| 20 | make |
| 21 | |
| 22 | #install, I prefer use checkinstall for have a simple remove in the future[[BR]] |
| 23 | sudo make install or better sudo checkinstall -D |
| 24 | |
| 25 | #go to kernel path[[BR]] |
| 26 | cd ../../zoo-kernel/ |
| 27 | |
| 28 | #create configure file[[BR]] |
| 29 | autoconf |
| 30 | |
| 31 | #run configure, in ubuntu 10.04 there isn't libmozjs-dev, for use js it must compile SpinderMonkey, for use the php read [wiki:ZooKernel/Embed/PHP#ConfigureandInstallPHPEmbedlibrary][[BR]] |
| 32 | ./configure --with-php=no --with-java=/path/to/java |
| 33 | |
| 34 | #compile[[BR]] |
| 35 | make zoo_loader.cgi |
| 36 | |
| 37 | #copy all the file inside the path of cgi-bin[[BR]] |
| 38 | sudo cp main.cfg /usr/lib/cgi-bin |
| 39 | |
| 40 | sudo cp zoo_loader.cgi /usr/lib/cgi-bin |
| 41 | |
| 42 | # Install ZOO ServiceProvider[[BR]] |
| 43 | sudo cp ../zoo-services/hello-py/cgi-env/*.zcfg /usr/lib/cgi-bin |
| 44 | |
| 45 | sudo cp ../zoo-services/hello-py/*.py /usr/lib/cgi-bin/ |
| 46 | |
| 47 | #try the installation[[BR]] |
| 48 | http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=GetCapabilities&Version=1.0.0 [[BR]] |
| 49 | http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy [[BR]] |
| 50 | http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=luca |