Developers installation guide - Ubuntu
About this document
- Purpose
- This document describes the installation of ICE on a Ubuntu 8.10, 9.04 and 9.10 systems.
- Audience
- Software developers and users with a technical knowledge of Ubuntu Linux.
- Requirements
- This document assumes knowledge of basic Linux command-line tools.
- You will need root access to your system in order to install the required software.
- Note
- Proxy users: SVN access to content (installation packages or ICE repositories), may require changing the SVN proxy settings inside the SVN server setting files when switching between accessing an internal svn repository and an external svn repository.
- References
- For more detailed information about Subversion repositories see the Subversion website at http://subversion.tigris.org
- This version date
- 09/11/09
Ubuntu 8.10
Install OpenOffice.org 3
At the time of preparing this procedure, OpenOffice.org 3 was not available as an official package for Ubuntu 8.10. This install OpenOffice.org 3 or update a previous version to version 3.
Firstly, add the OpenOffice.org package source to Ubuntu's package system:
From the
Systemmenu, chooseAdministration/Software SourcesSelect the
Third-Party SoftwaretabClick on the
AddbuttonPaste the following text into the text box:
deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
Click on the
Add SourcesbuttonClick on
Closebutton
Install the packages:
From the
Systemmenu, chooseAdministration/Synaptic Package ManagerLocate the openoffice.org package and right-click, selecting
Mark for InstallationorMarkfor Upgrade(depending on if you have an earlier version or not).Click on the
Applybutton in the toolbar to install the package.
Install the Python packages
Type the following command within a command prompt:
sudo aptitude install subversion python-paste python-imaging python-libxml2
sudo aptitude install python-libxslt1 python-setuptools python-svn python-twisted-web python-uno
sudo aptitude install python2.5-dev python-cheetah python-gdata python-textile python-openid python-lxml
Install the foresite toolkit using the following commands:
sudo easy_install-2.5 -U rdflib==2.4.0
wget http://foresite-toolkit.googlecode.com/files/foresite-1.1.tgz
tar xzvf foresite-0.9.tgz
cd ${FORESITE_SRC_DIR}sudo python ./setup.py install
Install the PyLucene library using the following commands:
wget http://downloads.osafoundation.org/PyLucene/linux/ubuntu/7.04/PyLucene-2.2.0-1.tar.gz
tar zxvf PyLucene-2.2.0-1.tar.gz
sudo cp -r PyLucene-2.2.0-1/python/ /usr/lib/python2.5/site-packages/
Install remaining packages
sudo easy_install-2.5 pycurl
sudo easy_install-2.5 pyPdf
Ubuntu 9.04
Install python libraries
Add the following via Synaptic Package manager or sudo aptitude install command:
subversion
python-svn
python-libxslt1
python-paste
python-twisted
python-setuptools
python2.6-dev
idle (opt)
python-cheetah
python-textile
python-openid
python-gdata
python-lxml
python-pycurl
python-pypdf
python-reportlab
build-essential
Install jcc
sudo easy_install jcc
Install pylucene
The Pylucene that comes with Ubuntu 9.04 is compatible with Python2.5, so the version that's compatible with Python2.6 is required.
cd ~/downloads
wget http://apache.wildit.net.au/lucene/pylucene/pylucene-2.4.1-1-src.tar.gz
tar -zxvf pylucene-2.4.1-1-src.tar.gz
cd pylucene-2.4.1-1
pushd jcc
sudo apt-get install patch
sudo apt-get install ant
Apply patch
sudo patch -d –Nup0 /usr/lib/python2.6/dist-packages < ~/downloads/pylucene-2.4.1-1/jcc/jcc/patches/patch.43python setup.py build
sudo python setup.py install
popd
Edit the
Makefileto match the Ubuntu environment by uncommenting and editing lines below #Linux Ubuntu version 8.10 etc)PREFIX_PYTHON=/usr
ANT=ant
PYTHON=$(PREFIX_PYTHON)/bin/python
JCC=$(PYTHON) /usr/local/lib/python2.6/dist-packages/JCC-2.2-py2.6-linux-i686.egg/jcc/__init__.py --shared
NUM_FILES=2
If using a proxy (optional)
edit
~/.subversionadd
http-proxy-hostandhttp-proxy-portContinue with the installation
make
sudo make install
Turn off proxy (optional)
edit
~/.subversioncomment out
http-proxy-host and http-proxy-port
Install foresite
wget http://foresite-toolkit.googlecode.com/files/foresite-1.1.tgz
tar xzvf foresite-1.1.tgz
cd ${FORESITE_SRC_DIR}sudo python setup.py install
Ubuntu 9.10
Basically the same as for Ubuntu 9.04, but note the following changes for installation of pylucene and jcc.
Install jcc
sudo easy_install jcc
Note: the installation path (e.g. /usr/local/lib/python2.6/dist-packages/JCC-2.4-py2.6-linux-i686.egg )
Install pylucene
Download pylucene
cd ~/downloads
wget http://apache.wildit.net.au/lucene/pylucene/pylucene-2.9.0-1-src.tar.gztar -zxvf pylucene-2.9.0-1-src.tar.gz
cd pylucene-2.9.0-1
pushd jcc
sudo apt-get install patch
sudo apt-get install ant
Apply patch
sudo patch -d –Nup0 /usr/lib/python2.6/dist-packages < ~/downloads/pylucene-2.4.1-1/jcc/jcc/patches/patch.43python setup.py build
sudo python setup.py install
popd
Edit the
Makefileto match the Ubuntu environment by uncommenting and editing lines below #Linux Ubuntu version 8.10 etc)PREFIX_PYTHON=/usr
ANT=ant
PYTHON=$(PREFIX_PYTHON)/bin/python
JCC=$(PYTHON) /usr/local/lib/python2.6/dist-packages/JCC-2.4-py2.6-linux-i686.egg/jcc/__init__.py --shared
NUM_FILES=2
Note: the above JCC path should be the same as where easy_install installed JCC.
Install pylucene
make
sudo make install
Verify the packages are installed
The Python packages can be verified by:
python >>>import Image >>>import libxslt >>>import libxml2 >>>import pysvn >>>import Cheetah >>>import paste >>>import rdflib >>>import gdata >>>import textile >>>import openid >>>import lxml >>>import pycurl >>>import pyPdf >>>import reportlab >>>import foresite >>>import lucene
Configure OpenOffice.org
When the document loads select enable macros.
From the menubar select ICE...Change port
Enter 2002
Close the document and restart the application
Install ICE
Download the ICE trunk source and start the ICE application:
svn co http://ice.usq.edu.au/svn/ice/trunk/apps ice-source
cd ice-source/ice
python ice2.py
Configure ICE
Save http://ice.usq.edu.au/svn/ice/trunk/apps/ice/config_sample.xml as config.xml in either
~/.iceorice-source/ice
Install ICE Toolbar
Set ICE_HOME to
ice-source/iceAdd ICE Toolbar to OpenOffice.org by following the standard OpenOffice instructions.






