The following transcript downloads all the necessary packages needed to install and run Decapod 0.3.

Note: at the end of the installation the following directory structure would be created in the local working directory. Please plan accordingly.

./gphoto2/
./gphoto2/gphoto2-2.4.7/
./gphoto2/libgphoto2-2.4.8/

./ocropus-0.4.4/
./ocropus-0.4.4/iulib/
./ocropus-0.4.4/ocropus/
./ocropus-0.4.4/ocropy/
./ocropus-0.4.4/ocroswig/
./ocropus-0.4.4/openfst-1.1/
./ocropus-0.4.4/pyopenfst/

./decapod/
./decapod/components/
./decapod/decapod-stitching/
./decapod/decapod-genpdf/
./decapod/infusion/
./decapod/tests/

Installation Script

### Install some required packages
sudo apt-get install mercurial scons hardinfo hwinfo python-simplejson
sudo apt-get install subversion cvs python-tk swig checkinstall
sudo apt-get install python-cherrypy3 python-numpy python-imaging
sudo apt-get install python-scipy python-matplotlib python-reportlab
sudo apt-get install python-opencv valgrind python-gnome2


### Install gphoto2

mkdir gphoto2
cd gphoto2

# Install dependencies for gphoto2

sudo apt-get install autoconf libtool gettext libusb-dev libpopt-dev

# Install libgphoto2 v2.4.8

wget http://sourceforge.net/projects/gphoto/files/libgphoto/2.4.8/libgphoto2-2.4.8.tar.gz/download
tar -zxvf libgphoto2-2.4.8.tar.gz
cd libgphoto2-2.4.8
./configure
make
sudo make install
sudo ldconfig
cd ..

# Install gphoto2 v2.4.7

wget http://sourceforge.net/projects/gphoto/files/gphoto/2.4.7/gphoto2-2.4.7.tar.gz/download
tar -zxvf gphoto2-2.4.7.tar.gz
cd gphoto2-2.4.7
./configure
make
sudo make install
sudo ldconfig
cd ../..

### Install Ocropus 0.4.4

mkdir ocropus-0.4.4
cd ocropus-0.4.4
release="-r ocropus-0.4.4" # this selects release 0.4.4

# download everything

hg clone $release https://iulib.googlecode.com/hg/ iulib
hg clone $release https://ocropus.googlecode.com/hg/ ocropus
hg clone $release https://ocroswig.ocropus.googlecode.com/hg/ ocroswig
hg clone $release https://ocropy.ocropus.googlecode.com/hg/ ocropy
wget -nd http://mohri-lt.cs.nyu.edu/twiki/pub/FST/FstDownload/openfst-1.1.tar.gz
hg clone $release https://pyopenfst.googlecode.com/hg/ pyopenfst

# compile iulib

cd iulib
sudo sh uninstall
sudo sh ubuntu-packages
scons -j 4 sdl=1
sudo scons -j 4 sdl=1 install
cd ..

# compile ocropus

cd ocropus
sudo sh uninstall
sudo sh ubuntu-packages
scons -j 4 omp=1
sudo scons -j 4 omp=1 install
cd ..

# compile openfst

tar -zxvf openfst-1.1.tar.gz
cd openfst-1.1
./configure
make -j 4
sudo make install
cd ..

# compile ocroswig

cd ocroswig
make
cd ..

# compile ocropy

cd ocropy
sudo python setup.py install
cd ..

# compile Python bindings for openfst

cd pyopenfst
make
cd ../..

### Install Decapod 0.3

# get some dependencies
sudo apt-get install libtiff-tools imagemagick

# Download Version 0.3 of Decapod
svn co http://source.fluidproject.org/svn/fluid/decapod/tags/decapod-0.3/

# Install Decapod PDF Generation Script

cd decapod-0.3/
hg clone https://genpdf.decapod.googlecode.com/hg/ decapod-genpdf
cd decapod-genpdf/src/
hg update -C decapod-0.3
hg update decapod-0.3
sudo scons -j 4 install
sudo python setup.py install
cd ../..

# Install Decapod Stitching script

hg clone https://stitching.decapod.googlecode.com/hg/ decapod-stitching
cd decapod-stitching/
hg update decapod-0.3
sudo python setup.py install
cd ../..

### Last step. IMPORTANT:
# Edit ./decapod/components/server/dserver.conf
# Change tools.staticdir.root to point to the location of Decapod on your local system.

# Done