Zorba Build Notes for Ubuntu/Debian Linux Users

Ubuntu Packages

Most of the tools and libraries you might need to build Zorba are available in the standard Ubuntu/Debian repositories. Here we list the packages that you should install to meet the requirements specified at Prerequisites for Building Zorba.

Tools

To install the gcc compiler and CMake:
sudo apt-get install build-essential cmake
To install Bazaar (for building the latest Zorba source, or for building non-core modules):
sudo apt-get install bzr

Core Zorba Library Dependencies

Required libraries for core Zorba:
sudo apt-get install libxml2-dev uuid-dev
Recommended libraries for core Zorba:
sudo apt-get install libicu-dev libxerces-c-dev
Optional libraries for core Zorba:
sudo apt-get install libxslt-dev libcurl4-openssl-dev libxerces-c-dev
SWIG and development requirements for Zorba language bindings:
sudo apt-get install swig python-dev php5-dev ruby-dev openjdk-6-jdk libaccess-bridge-java-jni

Non-Core Module Library Dependencies

HTML Module (data-converters package)

sudo apt-get install libtidy-dev

Geo Module

To install libgeos for the Geo Module, first ensure that the version available for your distribution is at least 3.2.2:
apt-cache show libgeos-dev | grep Version:
If it is lower than 3.2.2, then you may add our PPA to your list of repositories to get a later version:
sudo add-apt-repository ppa:juan457/zorba
sudo apt-get update
In either case, install libgeos with:
sudo apt-get install libgeos-dev

ImageMagick (for image modules)

sudo apt-get install imagemagick libmagick++-dev libmagickwand-dev

Email Module

We recommend using our PPA to install the C-Client module, as the Ubuntu packages are not built correctly at least on 64-bit platforms.
sudo add-apt-repository ppa:juan457/zorba
sudo apt-get update
sudo sudo apt-get install libc-client2007e libc-client2007e-dev
Or, you may build it yourself from source, so long as you force the -fPIC option:
wget ftp://ftp.cac.washington.edu/imap/imap-2007e.tar.gz
tar -xf imap-2007e.tar.gz
sudo apt-get install libpam-dev
cd imap-2007e
make lnp EXTRACFLAGS="-I/usr/include/openssl -fPIC"
Note: In case of errors, delete all, untar and make again, don't trust make clean.If you do this, be sure to pass the path to the "c-client" subdirectory of your build to CMake when configuring Zorba, e.g.:
cmake -DCMAKE_PREFIX_PATH="~/imap-2007e/c-client" ../
make