Actually, Zimbra Server doesn’t support Ubuntu Server 9.04. The last version that is support is 8.04 LTS.
So, we will made it from sources (from latest release), for Ubuntu Server 9.04. Of course, I will push a RTU package at the end of the tutorial.
This tutorial is partially based on this one : http://wiki.zimbra.com/index.php?title=Building_Zimbra_using_Perforce
Starting by getting “p4″ (Perforce) client, they versionning tools.
32 bits :
sudo wget -O /usr/local/bin/p4 'http://www.perforce.com/downloads/perforce/r09.1/bin.linux26x86/p4' sudo chmod +x /usr/local/bin/p4
64 bits :
sudo wget -O /usr/local/bin/p4 'http://www.perforce.com/downloads/perforce/r08.2/bin.linux26x86_64/p4' sudo chmod +x /usr/local/bin/p4
Setup dependancy system :
sudo aptitude install lsb libtool libltdl7-dev zlib-bin flex libpcre3-dev g++ libncurses5-dev sudo aptitude install libperl-dev zlibc sudo fetchmail libgmp3c2 openssl ant bison sudo aptitude install libexpat-dev libpopt-dev sudo aptitude install autoconf libz-dev
Setup environment :
export P4PORT=codes.zimbra.com:2666 export BUILD_HOME="/home/public/p4/zcs" export P4EDITOR=vim export JAVA_HOME=/home/public/p4/GNR-D5/jdk1.5.0_20 export PATH=$JAVA_HOME/bin:$PATH export ANT_HOME=/usr/share/ant sudo mkdir -p /home/public/p4 sudo chown -R $USER: /home/public
Download sources (remove -f for a simple update):
p4 -u public -P public1234 -c public-view sync -f //depot/zcs/GNR-D5/...
Download proper JAVA version (1.5)
Go to here : http://java.sun.com/javase/downloads/index_jdk5.jsp#jdk
. Download Java JDK 1.5.0_20 SE. And download Java JDK 1.6.0_16 SE. (We need both, one for building, one for using ! strange but true)
Let’s start building Zimbra package :
32 bits :
cd /home/public/p4/GNR-D5 chmod +x $HOME/Bureau/jdk-1_5_0_20-linux-i586.bin $HOME/Bureau/jdk-1_5_0_20-linux-i586.bin chmod +x $HOME/Bureau/jdk-6u16-linux-i586.bin $HOME/Bureau/jdk-6u16-linux-i586.bin mkdir -p ThirdPartyBuilds/i386/java/ tar zcf ThirdPartyBuilds/i386/java/jdk1.6.0_16.tgz jdk1.6.0_16 sudo rm /usr/local/java sudo ln -sf $PWD/jdk1.5.0_20 /usr/local/java bash -l
64 bits :
cd /home/public/p4/GNR-D5 chmod +x $HOME/Bureau/jdk-1_5_0_20-linux-amd64.bin $HOME/Bureau/jdk-1_5_0_20-linux-amd64.bin chmod +x $HOME/Bureau/jdk-6u16-linux-x64.bin $HOME/Bureau/jdk-6u16-linux-x64.bin mkdir -p ThirdPartyBuilds/x86_64/java/ tar zcf ThirdPartyBuilds/x86_64/java/jdk1.6.0_16.tgz jdk1.6.0_16 sudo rm /usr/local/java sudo ln -sf $PWD/jdk1.5.0_20 /usr/local/java bash -l
Create Zimbra user :
sudo adduser --home /opt/zimbra zimbra sudo chown -R $USER: /opt/zimbra
So, Zimbra doesn’t support UBUNTU9, but UBUNTU8. Of course, it is why I made this tutorial. We have to change the source.
Here magic command to edit all file we have to change :
gvim $(grep UBUNTU8 . -Rl | xargs grep -L UBUNTU9)
Now we have to copy all UBUNTU8 instruction and change it to UBUNTU9. Under gvim for saving, use “:w!”, and for closing file use “:bd”.
Replace “perl-5.8.8″ by “perl5.10.0″.
Replace “libperl-5.8″ by “libperl5.10″.
Don’t change UBUNTU8.def and UBUNTU8_64.def.
Change this script “./ZimbraBuild/rpmconf/Build/get_plat_tag.sh” to add support of UBUNTU9 :
Find “DISTRIB_RELEASE=8″, duplicate it and replace it by “DISTRIB_RELEASE=9″.
When you run it, you should have :
ZimbraBuild/rpmconf/Build/get_plat_tag.sh UBUNTU9_64
Change this script : “ThirdParty/nginx/nginx-0.5.37-zimbra/auto/cc/gcc”.
Find “CFLAGS= … Werror” and comment it.
Let’s start building third party tools :
ThirdParty/buildThirdParty.sh -c
Now, let’s start building Zimbra,
cp -f ZimbraBuild/defs/UBUNTU8_64.def ZimbraBuild/defs/UBUNTU9_64.def cp -f ZimbraBuild/defs/UBUNTU8.def ZimbraBuild/defs/UBUNTU9.def ./ZimbraBuild/buildZCS.sh
The package could be found in ZimbraBuild/zcs-*. So just run the installation script on your server, and it’s done !
Here my building package for Ubuntu Server 9.04 (32 and 64 bits) :
Celogeek


September 7th, 2009 7:39
I’m building 32 bits version actually … take a little bit time because I use a VM
September 7th, 2009 21:57
Thanks celogeek
The english is a little more easy to understand for me
I waited that you build the Zimbra Server 6.0 GA Ubuntu 9.04 of 32 bits
September 8th, 2009 6:58
I myself ask: why Zimbra don’t support ubuntu 9? So does this build run properly?:)
but I’m interesting with your job, maybe we need some test before using it?
September 8th, 2009 8:35
32 bits version is there already! it s the ubuntu9 and not the ubuntu9_x64. i will had text to indicate it.
September 8th, 2009 8:40
zimbra doesn t support ubuntu9 because it s not a lts version. ubuntu8 is a lts(long term support).
i m sure this version don t work like this on ubuntu8 just because of the mistake about java_version.
this is sure that they plan to swith to java 1.6 in a near futur.
September 8th, 2009 16:23
Hi colegeek
I have this error, when I install your package zcs-6.0.0_GA_1805.UBUNTU9.20090907072937.tgz
Installing packages
zimbra-core……zimbra-core-6.0.0_GA_1805.UBUNTU9_i386.deb…FAILED
###ERROR###
zimbra-core-6.0.0_GA_1805.UBUNTU9_i386.deb installation failed
Installation cancelled
Could you help me with this, or tell me what happened?
Thanks for your answer.
Dmonium
September 8th, 2009 16:26
I will check it
I let you know
September 8th, 2009 16:27
You are on Ubuntu 9.04 Server 32 bits ?
September 8th, 2009 16:42
Hi,
I have check
So, did you install all missing package ?
I have this on my computer :
Checking for prerequisites…
FOUND: NPTL
FOUND: sudo-1.6.9p17-1ubuntu3
FOUND: libidn11-1.10-3
FOUND: libpcre3-7.8-2ubuntu1
FOUND: libgmp3c2-2:4.2.4+dfsg-2ubuntu1
FOUND: libexpat1-2.0.1-4
FOUND: libstdc++6-4.3.3-5ubuntu4
MISSING: libstdc++5
Checking for suggested prerequisites…
FOUND: perl-5.10
MISSING: sysstat does not appear to be installed.
=> so install all MISSING and try again.
I’m checking all process, but pretty sure is this.
September 8th, 2009 17:00
I already installed all prerequisites, before to install
September 8th, 2009 17:07
My server is HP proliant ML150 of 32 bits
UBUNTU 9.04 Server installed
All prerequisites were installed
The problem with zimbra-core-6.0.0_GA_1805.UBUNTU9_i386.deb persist
thanks for your answer.
pd. excuse me if my english is so bad
September 8th, 2009 19:25
ok I will check all of this, and post solution quickly
thanks for report
September 8th, 2009 21:29
I have check and I have seen why
in fact, it’s still a java problem
they try to link java 1.6.0_16 instead of 1.5 I have push in it (I have use that version because compilation failed with 1.6)
So, I will fix package and re-up it (after full test on both system)
sorry for that
September 8th, 2009 21:46
Yes ! I have fix it, I reup package
September 8th, 2009 21:46
will be fully available tomorrow
September 9th, 2009 1:15
I’m currently reup zimbra
so, just do that to clean up :
sudo dpkg –purge zimbra-core
sudo rm -rf /opt/zimbra
And start again new install, it should work now, I have fix some mistake in dependency, and fix java link
September 9th, 2009 9:54
It seems to work with java 1.6, if it’s ok I rebuild everything and reup new version
September 9th, 2009 16:34
Hi,
Thanks for the English tutorial. I decided to compile from source following your instructions above.
I am totally lost about downloading the java. Do I download it on my windows desktop and move it to ubuntu server via ssh or samba (I have both setup)? Or use a wget command. In either case what is the exact filename that I should download?
Thanks,
Vab
September 9th, 2009 17:30
Never mind…I googled “Java JDK 1.5.0_20 SE download” (without quotes) and found a link. Was able to download it after registration.
Thanks!
September 9th, 2009 18:54
Hi again, I have fix usage of java 1.6
it work, it will use java 1.6 but we need java 1.5 to build project
I will test it at home, all package are uploaded already, if it’s working fine, I will publish it and change tuto
Celogeek
September 9th, 2009 20:52
everything ok !
I’m uploading package !!!
64 bits today,
32 bits tomorrow morning
I change tuto to reflect this
September 9th, 2009 23:10
Hi Celogeek,
It would be extremely helpful if you include the functions of some commands used within the tutorial. For example, the magic command:
gvim $(grep UBUNTU8 . -Rl | xargs grep -L UBUNTU9)
Just so lazy people like me don’t have to dig deep into gvim syntax and so forth. And we can focus on getting Zimbra up and running fast!
Thanks,
Vab
September 9th, 2009 23:53
Building of third party tools hangs as soon as it starts building openssl as below. It does not go any further than that. Any ideas?
*** Building in openssl
September 10th, 2009 8:55
building take a lot s of time and depends directly of your computer.
take me nearly an hour on quad core 3ghz intel with 4gb of ram.
September 10th, 2009 18:54
Now that you’ve uploaded the 32 bit RTU, I’d just go ahead and use that. Forgive my ignorance but will it overwrite all the files etc from my previous building attempt? I don’t want to leave any unnecessary files, settings etc from the build process. Do I need to undo anything manually to make the RTU package install properly?
Thanks!
September 10th, 2009 19:03
Yeah, just remove all /opt/zimbra
Normally the building machine and the install machine aren’t the same
in otherwise, you have to clean up zimbra dir before install
and for upgrade it’s worse, you have to keep /opt/zimbra somewhere else, cut service …, run build, clean /opt/zimbra, restore zimbra dire and do the update !
Welcome to a bad compile method world !
September 10th, 2009 19:04
Gentoo (the distrib) has made a Sandbox to do this, a kind of chroot, it’s clean, Zimbra should use this kind of process, it’s better for people who want to upgrade and build from the same computer.
September 11th, 2009 2:48
Thanks much for sharing your RTU package. The installation went smooth.
BTW, just so you know, I had subscribed to this thread yesterday but didn’t get email notifications when you posted the previous 2 replies. You may want to look into that.
Thanks again!
September 11th, 2009 11:54
I think will be need un Upgrade tutorial
September 27th, 2009 12:39
I am looking at migrating from a total Novell environment….one of the things I am looking @ is replacing GroupWise with zimbra…any tips?
September 27th, 2009 20:43
Migration from one to over is rarelly easy,
for example that depends of backend
If both use cyrus as imap server (not sure), a simple copy should work,
of ldap, you have to export / import (script could do it).
Well, it’s not really easy to do that.
Zimbra need a lot of power and ressource. Are you sure you current server will fit this one ?
If you have only a few account, you could open 2 account over Outlook or anythink else, and just copy paste calender / task / Mail / contact …
November 25th, 2009 10:40
when I try to install zimbra on 8.04 server, it goes through but I cannot log into the admin page, it gives me errors about my DNS please help celogeek.
November 25th, 2009 10:50
Could you give us the log of your error please.
Ubuntu 8.04 is an old version, don’t you have a official version for this os ?
November 25th, 2009 17:55
Hi Celogeek,
We are trying to install Zimbra, we have Ubuntu 9.10 but there is no zimbra version for it yet. From you blog we tried to download the 9.04 file but it never finished to download so we opted for the 8.04 which we try to install.
During installation we encounter two errors
1. conflict on port 80 so we change it to 8080
2. the hostname is not resolvable (our hostname is “mail” and the domain is “swgroup.sl”) but still it is giving DNS error
After installation we can’t login to zimbra with “http://mail.swgroup.sl:8080/zimbraAdmin” nor “https://mail.swgroup.sl:7071/zimbraAdmin”
How can we resolve this problem
November 25th, 2009 22:53
My package is made for Ubuntu 9.04 only
9.10 hasn’t the same gcc, is not made for it,
I have to investigate to make it work on this system.
Could you try on Ubuntu 9.04 ? Or previous version ?
The hostname has to be a full hostname : mail.swgroup.sl
and so the domain name is : swgroup.sl
You apps try to resolve “mail” that doesn’t exist (except if you declare mail in your host file, not really a good think).
November 25th, 2009 22:55
@celogeek,
I am currently trying to download the edition you offered above, when I try that one I will get back to you, thanks for the heads up.
November 28th, 2009 22:35
@ceelogeek, everthing went well with the installation, but when it finished i cannot log into zimbra admin page, it tells me failed to connect, also when i type: su – zimbra from terminal it asks me for password then says authentication failed. help sos.
November 28th, 2009 23:58
you are a genius ceelo, everything worked perfectly, after i installed again, thanks for the package
November 29th, 2009 1:40
Well, for zimbra just set a password to “zimbra” account, and so.
For login, you have to configure it properly after install, something is well write for this part (I think) on zimbra website.
They is a menu with many option, you have to set it fully.
take care about firewall, port for admin is not a standard, so …
January 11th, 2010 1:43
Actually I got this error in 9.10
Checking for prerequisites…
FOUND: NPTL
MISSING: sudo
MISSING: libidn
MISSING: fetchmail
MISSING: gmp
MISSING: /usr/lib/libstdc++.so.5
Checking for suggested prerequisites…
January 11th, 2010 10:32
Please install this tools with “apt-get install SOFTWARE”, they are needed for the package to work
And well, this package (mine) is not compatible with 9.10 …
I have to make effort to make it work, I’m not sure latest package work actually with 9.10, too many think has changed.