Changeset 215 for trunk/docs


Ignore:
Timestamp:
May 26, 2011, 6:36:34 PM (14 years ago)
Author:
jmckenna
Message:

add Debian / Ubuntu install instructions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/kernel/installation.txt

    r213 r215  
    495495  ./zoo_loader.cgi "request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=BufferDistance=1@datat
    496496
     497Debian / Ubuntu
     498***************
     499
     500.. note::
     501   An Ubuntu 10.4 with ZOO virtual image is available at http://www.zoo-project.org/Ubuntu10.4_ZOO.zip
     502   (root: ZOO.test)
     503
     504The following instructions were tested on Debian Squeeze, Ubuntu 10.04 and Ubuntu 10.10
     505
     506Installation Workflow
     507^^^^^^^^^^^^^^^^^^^^^
     508
     509- install some dependencies
     510::
     511
     512  sudo apt-get install flex bison libfcgi-dev libxml2 libxml2-dev curl openssl autoconf checkinstall
     513
     514- download ZOO  source
     515
     516::
     517
     518  svn checkout http://svn.zoo-project.org/svn/trunk zoo-project
     519
     520- install cgic from packages
     521
     522::
     523
     524  cd zoo-project/thirds/cgic206/
     525
     526- change the path of installation
     527
     528::
     529
     530  nano Makefile
     531    - LIBS=-L./ -lcgic ../fcgi-2.4.0/libfcgi/.libs/libfcgi.a --> LIBS=/path/to/libfcgi.a
     532    - cp libcgic.a  ../../dist/lib --> cp libcgic.a /usr/lib
     533    - cp cgic.h  ../../dist//include --> cp cgic.h  /usr/include
     534    - @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.
     535
     536- compile
     537
     538::
     539
     540  make
     541
     542- install
     543
     544::
     545
     546  sudo make install
     547
     548- go to kernel path
     549
     550::
     551
     552  cd ../../zoo-kernel/
     553
     554- create configure file
     555
     556::
     557
     558  autoconf
     559
     560- run configure
     561
     562.. note::
     563   In Ubuntu 10.04 libmozjs-dev does not exist, so to use JS you can compile `SpiderMonkey <https://developer.mozilla.org/en/SpiderMonkey>`__ or use the xulrunner-dev package
     564   which includes SpiderMonkey. 
     565   For PHP, you must make sure to compile PHP with `--enable-embed <http://www.zoo-project.org/trac/wiki/ZooKernel/Embed/PHP#ConfigureandInstallPHPEmbedlibrary>`__.
     566
     567::
     568
     569  ./configure --with-java=/path/to/java
     570 
     571  to JavaScript with XulRunner SpiderMonkey you have to edit configure file.
     572    - JS_CPPFLAGS="-I$JSHOME/include/js" --> JS_CPPFLAGS="-I$JSHOME/include"
     573    - JS_LDFLAGS="-L$JSHOME/lib -ljs -lm" --> JS_LDFLAGS="-L$JSHOME/lib -lmozjs -lm"
     574    - JS_LIB="js" --> JS_LIB="mozjs"
     575   
     576  ./configure --with-js=/usr/lib/xulrunner-devel.1.9.2.n
     577
     578- compile
     579
     580::
     581
     582  make zoo_loader.cgi
     583
     584- copy necessary files into your cgi-bin
     585
     586::
     587
     588  sudo cp main.cfg /usr/lib/cgi-bin
     589  sudo cp zoo_loader.cgi /usr/lib/cgi-bin
     590
     591- Install ZOO ServiceProvider
     592
     593::
     594
     595  sudo cp ../zoo-services/hello-py/cgi-env/*.zcfg /usr/lib/cgi-bin
     596  sudo cp ../zoo-services/hello-py/*.py /usr/lib/cgi-bin/
     597
     598- change some paths in the main.cfg
     599
     600::
     601
     602  sudo nano /usr/lib/cgi-bin/main.cfg
     603    - serverAddress = http://127.0.0.1
     604    - providerSite = http://127.0.0.1
     605
     606
     607- try the installation
     608
     609  - http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=GetCapabilities&Version=1.0.0
     610  - http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy
     611  - 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
     612
     613.. note::
     614   If you have some problem in the execute request, add the following to ``main.cfg``:
     615
     616   ::
     617   
     618     [env]
     619     PYTHONPATH=<YOUR_PYTHONPATH>
    497620
    498621WIN32
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

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