source: trunk/docs/kernel/install-debian.txt @ 271

Last change on this file since 271 was 271, checked in by nbozon, 13 years ago

svn keywords added to every file where it makes svn

File size: 3.3 KB
Line 
1.. _kernel-installation-debian:
2
3Debian / Ubuntu
4===============
5
6:Last Updated: $Date$
7:Id:    $Id$
8:Author: $Author$
9:HeadURL: $HeadURL$
10
11.. contents:: Table of Contents
12    :depth: 2
13    :backlinks: top
14
15.. note::
16   An Ubuntu 10.4 with ZOO virtual image is available at http://www.zoo-project.org/Ubuntu10.4_ZOO.zip
17   (root: ZOO.test)
18
19The following instructions were tested on Debian Squeeze, Ubuntu 10.04 and Ubuntu 10.10
20
21Installation Workflow
22---------------------
23
24- install some dependencies
25
26::
27
28  sudo apt-get install flex bison libfcgi-dev libxml2 libxml2-dev curl openssl autoconf checkinstall
29
30- download ZOO  source
31
32::
33
34  svn checkout http://svn.zoo-project.org/svn/trunk zoo-project
35
36- install cgic from packages
37
38::
39
40  cd zoo-project/thirds/cgic206/
41
42- change the path of installation
43
44::
45
46  nano Makefile
47    - LIBS=-L./ -lcgic ../fcgi-2.4.0/libfcgi/.libs/libfcgi.a --> LIBS=/path/to/libfcgi.a
48    - cp libcgic.a  ../../dist/lib --> cp libcgic.a /usr/lib
49    - cp cgic.h  ../../dist//include --> cp cgic.h  /usr/include
50    - @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.
51
52- compile
53
54::
55
56  make
57
58- install
59
60::
61
62  sudo make install
63
64- go to kernel path
65
66::
67
68  cd ../../zoo-kernel/
69
70- create configure file
71
72::
73
74  autoconf
75
76- run configure
77
78.. note::
79   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
80   which includes SpiderMonkey. 
81   For PHP, you must make sure to compile PHP with `--enable-embed <http://www.zoo-project.org/trac/wiki/ZooKernel/Embed/PHP#ConfigureandInstallPHPEmbedlibrary>`__.
82
83::
84
85  ./configure --with-java=/path/to/java
86 
87  to JavaScript with XulRunner SpiderMonkey you have to edit configure file.
88    - JS_CPPFLAGS="-I$JSHOME/include/js" --> JS_CPPFLAGS="-I$JSHOME/include"
89    - JS_LDFLAGS="-L$JSHOME/lib -ljs -lm" --> JS_LDFLAGS="-L$JSHOME/lib -lmozjs -lm"
90    - JS_LIB="js" --> JS_LIB="mozjs"
91   
92  ./configure --with-js=/usr/lib/xulrunner-devel.1.9.2.n
93
94- compile
95
96::
97
98  make zoo_loader.cgi
99
100- copy necessary files into your cgi-bin
101
102::
103
104  sudo cp main.cfg /usr/lib/cgi-bin
105  sudo cp zoo_loader.cgi /usr/lib/cgi-bin
106
107- Install ZOO ServiceProvider
108
109::
110
111  sudo cp ../zoo-services/hello-py/cgi-env/*.zcfg /usr/lib/cgi-bin
112  sudo cp ../zoo-services/hello-py/*.py /usr/lib/cgi-bin/
113
114- change some paths in the main.cfg
115
116::
117
118  sudo nano /usr/lib/cgi-bin/main.cfg
119    - serverAddress = http://127.0.0.1
120    - providerSite = http://127.0.0.1
121
122
123- try the installation
124
125  - http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=GetCapabilities&Version=1.0.0
126  - http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy
127  - 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
128
129.. note::
130   If you have some problem in the execute request, add the following to ``main.cfg``:
131
132   ::
133   
134     [env]
135     PYTHONPATH=<YOUR_PYTHONPATH>
Note: See TracBrowser for help on using the repository browser.

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