Blog | Roadmap | Browse Source | View Tickets | Register | Trac Login | Forgot Password?

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:

  1. From the System menu, choose Administration/Software Sources

  2. Select the Third-Party Software tab

  3. Click on the Add button

  4. Paste the following text into the text box:

    deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main 
  5. Click on the Add Sources button

  6. Click on Close button

Install the packages:

  1. From the System menu, choose Administration/Synaptic Package Manager

  2. Locate the openoffice.org package and right-click, selecting Mark for Installation or Mark for Upgrade (depending on if you have an earlier version or not).

  3. Click on the Apply button in the toolbar to install the package.

Install the Python packages

  1. 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
  2. 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
  3. 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/
  4. Install remaining packages

    sudo easy_install-2.5 pycurl
    sudo easy_install-2.5 pyPdf

Ubuntu 9.04

Install python libraries

  1. 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

  1. 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
  2. Apply patch

    sudo patch -d Nup0 /usr/lib/python2.6/dist-packages <  ~/downloads/pylucene-2.4.1-1/jcc/jcc/patches/patch.43
    python setup.py build
    sudo python setup.py install
    popd
  3. Edit the Makefile to 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
  4. If using a proxy (optional)

    edit ~/.subversion

    add http-proxy-host and http-proxy-port

  5. Continue with the installation

    make
    sudo make install 
  6. Turn off proxy (optional)

    edit ~/.subversion

    comment 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

  1. Download pylucene

    cd ~/downloads
    wget http://apache.wildit.net.au/lucene/pylucene/pylucene-2.9.0-1-src.tar.gz
    tar -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
  2. Apply patch

    sudo patch -d Nup0 /usr/lib/python2.6/dist-packages <  ~/downloads/pylucene-2.4.1-1/jcc/jcc/patches/patch.43
    python setup.py build
    sudo python setup.py install
    popd
  3. Edit the Makefile to 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.

  1. Install pylucene

    make 
    sudo make install

Verify the packages are installed

  1. 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

  1. Open Configure OpenOffice.org

  2. When the document loads select enable macros.

  3. From the menubar select ICE...Change port

  4. Enter 2002

  5. Close the document and restart the application

Install ICE

  1. 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
  2. Setup an ICE repository

  3. Configure ICE

    Save http://ice.usq.edu.au/svn/ice/trunk/apps/ice/config_sample.xml as config.xml in either ~/.ice or ice-source/ice

Install ICE Toolbar

  1. Set ICE_HOME to ice-source/ice

  2. Add ICE Toolbar to OpenOffice.org by following the standard OpenOffice instructions.

previous up next