[Live-demo] [OSGeo] #1710: ZOO packages missing from Xenial
OSGeo
trac_osgeo at osgeo.org
Tue Jun 14 06:09:49 PDT 2016
#1710: ZOO packages missing from Xenial
---------------------+----------------------------
Reporter: kalxas | Owner: kalxas
Type: defect | Status: closed
Priority: blocker | Milestone: OSGeoLive10.0
Component: LiveDVD | Resolution: fixed
Keywords: |
---------------------+----------------------------
Comment (by djay):
Angelos,
I have made some modification to the procedure to install the ZOO-Project
including both CGAL and OTB services. this new version provides also a new
demo index page giving access to each individual demo UIs (for org, cgal
and otb respectively).
Here is the sligthly modified procedure.
= New install procedure =
You can use the following command from a running OSGeoLiveDVD 10 to
install ZOO-Project revision 776 including both CGAL and OTB services, and
the corresponding demo UI to interact with.
== Packages required to build ==
{{{
sudo apt-get install flex bison libfcgi-dev libxml2 libxml2-dev curl
openssl autoconf apache2 python-software-properties subversion
libmozjs185-dev python-dev build-essential libxslt1-dev libmapserver-dev
libgdal-dev libcgal-dev libotb-dev libfftw3-dev libtinyxml-dev
}}}
== ZOO-Project building for OSGeoLive ==
{{{
mkdir src
svn checkout http://svn.zoo-project.org/svn/trunk zoo
cd zoo/zoo-project/thirds/cgic206/
make
cd ../../zoo-project/zoo-kernel/
autoconf
./configure --with-python --with-js --with-java=/usr/lib/jvm/java-8
-openjdk-amd64 --with-mapserver=/usr --with-ms-version=7 --with-cgal=/usr
--with-otb=/usr --with-itk-version=4.9 --with-itk=/usr --with-otb-
version=5.4
make
sudo make install
sudo cp ../zoo-api/js/* /usr/lib/cgi-bin
cd ../zoo-services/utils/status
make
sudo cp cgi-env/* /usr/lib/cgi-bin
sudo mkdir /var/data
sudo cp cgi-env/updateStatus.xsl /var/data
cd ../../ogr/base-vect-ops
make
sudo cp cgi-env/* /usr/lib/cgi-bin
cd ../../cgal
make
sudo cp cgi-env/* /usr/lib/cgi-bin
cd ../../thirds/otb2zcfg
mkdir build
cd build
cmake ..
make
mkdir ../zcfgs
cd ../zcfgs
export ITK_AUTOLOAD_PATH=/usr/lib/otb/applications/
otb2zcfg
for i in BandMath Despeckle KMeansClassification; do
sudo sed "s:mimeType = image/png:mimeType = image/png\nuseMapserver =
true\nmsClassify = true:g" -i $i.zcfg
done
for i in Smoothing; do
sudo sed "s:mimeType = image/png:mimeType = image/png\nuseMapserver =
true" -i $i.zcfg
done
sudo mkdir /usr/lib/cgi-bin/OTB
sudo cp *zcfg /usr/lib/cgi-bin/OTB
}}}
== ZOO-Project configuration ==
{{{
echo "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/" >
/etc/ld.so.conf.d/zoo.conf
sudo ldconfig
}}}
== Web UI to interract with the OGR/CGAL/OTB services ==
{{{
wget http://zoo-project.org/dl/examples-livedvd.tar.bz2
tar -xf examples-livedvd.tar.bz2
sudo cp -r zoo-demo /var/www/html/zoo-demo
sudo cp zoo-demo/main.cfg /usr/lib/cgi-bin
sudo cp zoo-demo/symbols.sym /var/data
sudo ln -s /tmp /var/www/html/mpPathRelativeToServerAdress
sudo chown -R www-data:www-data /var/data
rm -rf zoo-demo
}}}
Now, you can access the demos index page using the following URL:
http://localhost/zoo-demo/ .
I would like to know if it may be possible to integrate this new version
on OSGeoLiveDVD.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1710#comment:12>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.
More information about the Live-demo
mailing list