ZCP from source on Ubuntu 9.10

From Zarafa wiki

Jump to: navigation, search

For this document I start with a vanilla Ubuntu 9.10 server VM image from thoughtpolice. I use it to build the Zarafa Collaboration Platform (ZCP) 6.30.7 Community Edition 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

I then login over ssh (linux: ssh notroot@IPADDRESS, or use putty under Windows).

The following requirements have to be installed:

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 the ZCP Community source package. 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.tar.gz
cd zarafa-6.30.7
./configure --disable-static --disable-testtools \
  --with-userscript-prefix=/etc/zarafa/userscripts \
  --with-quotatemplate-prefix=/etc/zarafa/quotamails \
  --prefix=/usr/local --sysconfdir=/etc
make; make install
ls /usr/local/bin/zarafa-*  # shows that it worked

Voila! ZCP from source.

For other distribution it should be largely the same procedure.

Personal tools