Install from source on Ubuntu

From Zarafa wiki

Jump to: navigation, search

Ubuntu 12.04.3 Desktop

To build and use ZCP, install the following dependencies:

 sudo apt-get install apache2 postfix libapache2-mod-php5 mysql-client slapd mysql-server tinyca libssh2-1 build-essential php5-dev libtool uuid-dev libmysqlclient-dev gettext zlib1g-dev libldap2-dev automake debhelper flex bison libssl-dev libxml2-dev libncurses5-dev swig libicu-dev python-dev libboost-all-dev libcurl4-openssl-dev libvmime0 libvmime-dev libical0 libical-dev libxml2-dev libclucene-dev python-vobject python-ldap python-daemon python-lockfile python-nose python-mysqldb python-lxml pkg-config ca-certificates libgoogle-perftools-dev libncursesw5-dev valgrind

Not all dependencies may be necessary in every usage scenario, and some are already installed by default, but I personally like to have everything in one place.

In addition, download and install kyotocabinet from

 sudo make install

Optionally installed zarafa-patched versions of libvmime and libical (see general building from source page).

Ubuntu 9.10 server

This document describes how I adjusted an Ubuntu 9.10 server VM image from thoughtpolice to include Zarafa 6.30.7 from source. I found my VMWare image here:


Start VMWare Player, hit "Open a Virtual Machine", and select the .vmx file we just unzipped. Hit "Play" and say this VM is copied.

Logged in as "nonroot", the default user. Changed password to "password". Then I prepped the system for further use:

 sudo aptitude update
 sudo aptitude safe-upgrade  # upgrades the system, includes a new kernel, therefore reboot
 sudo aptitude install ssh openssh-server  # so we can log in with an ssh client ("putty" is a favorite on windows)
 reboot  # reboot and log in again on the updated kernel
 ip addr  # to find the ipaddress ubuntu is listening on, as we want log in over ssh

Logged in over ssh (linux: ssh [email protected], or use putty in Windows).

 sudo aptitude install apache2 postfix libapache2-mod-php5 mysql-client slapd \
   mysql-server tinyca ca-certificates libcurl3 libssh2-1 build-essential \
   php5-dev libtool pkg-config uuid-dev libmysqlclient15-dev gettext libz-dev \
   libldap-dev automake1.11 debhelper flex bison libcurl4-dev libssl-dev \
   libxml2-dev libncurses-dev 

Become root (sudo su). Download Zarafa community source package from: Move this tarball to /usr/local/src Then do the following:

 cd /usr/local/src
 # libical 0.44
 tar xvzf libical-0.44.tar.gz
 cd libical-0.44
 make; make install
 cd ..
 # libvmime 0.7.1 + patches
 tar xvjf libvmime-0.7.1.tar.bz2
 mkdir zarafa-vmime-patches
 tar xvzf zarafa-vmime-patches.tar.gz -C zarafa-vmime-patches
 cd libvmime-0.7.1
 for i in ../zarafa-vmime-patches/*.diff; do patch -p1 < $i; done
 make; make install
 cd ..
 # zarafa 6.30.7
 tar xvzf zarafa-6.30.7
 cd zarafa-6.30.7
 ./configure --disable-static --disable-testtools \
   --with-userscript-prefix=/etc/zarafa/userscripts \
 make; make install
 ls /usr/local/bin/zarafa-*  # shows that it worked
Personal tools