Install from source on Ubuntu

From Zarafa wiki

Revision as of 15:29, 11 January 2010 by Cies (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
 ifconfig | grep "inet 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