[Ubuntu 12.04] Compilation Guide (All components) - 28msec/zorba GitHub Wiki
This page will guide you to compiling Zorba including all external modules on Ubuntu 12.04. This page is mean to be used when you are interested in compiling Zorba with all features and all external modules. If you want to build a subset of the zorba zorba components and modules refer to [Ubuntu 12.04] Compilation guide.
Building Zorba
Check out the source code
sudo apt-get install git
mkdir -p ~/zorba/build
cd ~/zorba
git clone https://github.com/28msec/zorba.git
Checkout Zorba external modules
Note that the zorba_modules folder must be located at ../zorba_modules (respect to the folder where the zorba source code has been checked out. Moreover the ~ cannot be used in the -Doutdir parameter.
cd ~/zorba/zorba
mkdir -p ~/zorba/zorba_modules
cmake -Doutdir=../zorba_modules -Dallmodules=1 -P modules/DownloadModules.cmake
Install zorba dependencies
#Core
sudo apt-get install build-essential cmake libxml2-dev libicu-dev libxerces-c-dev libcurl4-openssl-dev uuid-dev libxslt-dev
#Parser
sudo apt-get install m4
wget http://launchpadlibrarian.net/160037457/bison_3.0.2.dfsg-2_amd64.deb
wget http://launchpadlibrarian.net/160037458/libbison-dev_3.0.2.dfsg-2_amd64.deb
sudo dpkg -i libbison-dev_3.0.2.dfsg-2_amd64.deb bison_3.0.2.dfsg-2_amd64.deb
#Lexer
wget https://launchpad.net/ubuntu/+source/flex/2.5.39-8/+build/6118519/+files/libfl-dev_2.5.39-8_amd64.deb
wget https://launchpad.net/ubuntu/+source/flex/2.5.39-8/+build/6118519/+files/flex_2.5.39-8_amd64.deb
sudo dpkg -i libfl-dev_2.5.39-8_amd64.deb flex_2.5.39-8_amd64.deb
#Documentation
sudo apt-get install doxygen texlive
#Test Driver
sudo apt-get install libboost-filesystem-dev
#External modules extra repositories
sudo apt-get install python-software-properties
sudo add-apt-repository --yes ppa:fcavalieri/zorba
sudo wget -O/etc/apt/sources.list.d/couchbase.list http://packages.couchbase.com/ubuntu/couchbase-ubuntu1204.list
wget http://packages.couchbase.com/ubuntu/couchbase.key
sudo apt-key add couchbase.key
sudo apt-get update
#External modules dependencies
sudo apt-get install libarchive-dev
sudo apt-get install graphviz-dev
sudo apt-get install openjdk-7-jdk
wget http://download.oracle.com/otn-pub/otn_software/nosql-database/kv-c-driver_3.3.5-0_amd64.deb
sudo dpkg -i kv-c-driver_3.3.5-0_amd64.deb
sudo apt-get install libfontbox-java libjempbox-java libpdfbox-java libcommons-logging-java
sudo apt-get install libtidy-dev
sudo apt-get install libc-client2007e-dev=8:2007e-1~dfsg-3.2ubuntu1zorba2
sudo apt-get install libsqlite3-dev
sudo apt-get install libcouchbase-dev
sudo apt-get install libmagick++-dev
sudo apt-get install libgeos++-dev
sudo apt-get install xmlbeans
sudo apt-get install libfop-java libcommons-logging-java
Build
cd ~/zorba/build
cmake -DZORBA_WITH_BIG_INTEGER=ON -DZORBA_XQUERYX:BOOL=1 -DZORBA_TEST_XQUERYX:BOOL=1 -DZORBA_WITH_BIG_INTEGER=1 -DCMAKE_BUILD_TYPE=Release -DZORBA_TEST_PLAN_SERIALIZATION:BOOL=1 -DZORBATEST_USE_MT_XQTS:BOOL=1 ~/zorba/zorba
make