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

Last change on this file since 314 was 314, checked in by jmckenna, 13 years ago

change header

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