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 http://fallabs.com/kyotocabinet/:

 ./configure
 make
 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: http://www.thoughtpolice.co.uk/vmware/

 wget http://downloads.sourceforge.net/thoughtpolicevm/ubuntu-server-9.10-i386.zip
 unzip ubuntu-server-9.10-i386.zip

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 notroot@IPADDRESS, 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: http://www.zarafa.com/content/download-community Move this tarball to /usr/local/src Then do the following:

 cd /usr/local/src
 # libical 0.44
 wget http://download.zarafa.com/mirror/libical-0.44.tar.gz
 tar xvzf libical-0.44.tar.gz
 cd libical-0.44
 ./configure
 make; make install
 cd ..
 # libvmime 0.7.1 + patches
 wget http://downloads.sourceforge.net/project/vmime/vmime/0.7/libvmime-0.7.1.tar.bz2
 tar xvjf libvmime-0.7.1.tar.bz2
 wget http://developer.zarafa.com/download/zarafa-vmime-patches.tar.gz
 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
 ./configure
 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 \
   --with-quotatemplate-prefix=/etc/zarafa/quotamails
 make; make install
 ls /usr/local/bin/zarafa-*  # shows that it worked
Personal tools