Installing Zimbra 5.0 on Debian 4.0 Etch AMD64
Zimbra Open Source Edition 5.0 for Debian 4.0 is x86 (32bit) only. You can compile from source or install 32bit version on 64bit system (Debian 4.0 AMD64).
Installation 32bit libraries and ActivePerl
You need some 32libs, as is writen in Using proprietary i386 apps on an amd64 system and Running 32-bit Applications on 64-bit Debian GNU/Linux. For Zimbra you need ActivePerl too. Download:
- ActivePerl 5.8 ActiveState ActivePerl 5.8.8 x86 version only! other doesn't work (NOT x64 or 5.10.x version).
- Zimbra 5.0 Debian 4 x86
- This 32bit libs Unofficial Zimbra 5.0 32bit libs package or download all libraries in archive from Debian package search
Do all as root
sudo su
Install ia32-libs and some 64bit packages
apt-get install ia32-libs apt-get install libidn11 curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libstdc++6 libstdc++5 lib32ncurses5
Unpack libs to /emul/ia32-linux/usr/lib/
tar xzf zimbra-32bit-libs.tar.gz mv lib32/* /emul/ia32-linux/usr/lib ldconfig # bind library changes
or download and unpack *.deb packages to /emul/ia32-linux. Example:
wget http://security.debian.org/debian-security/pool/updates/main/p/pcre3/libpcre3_6.7+7.4-3_i386.deb dpkg -X libpcre3_6.7+7.4-3_i386.deb /emul/ia32-linux ldconfig # bind library changes
Install ActivePerl
dpkg --force-architecture -i ActivePerl-5.8.8*.deb
Backup original Debian perl and use ActivePerl
mv /usr/bin/perl /usr/bin/perl.prezimbra ln -s /opt/ActivePerl-5.8/bin/perl /usr/bin/perl
You need use bash as sh (not dash etc.)
ls -l /bin/sh if: /bin/sh -> bash then ok, otherwise rm /bin/sh ln -s /bin/bash /bin/sh
Install Zimbra
Install Zimbra 5.0 for Debian x86. You can use this Zimbra 5.0 Debian installation manual, but skip "6 Get Zimbra" and do:
tar xf zcs-5.0.2_GA_1975.UBUNTU6.20080130235804.tgz # extract tar package cd zcs-5.0.2_GA_1975.UBUNTU6.20080130235804 # change directory export LANG='C' # modify 32bit installation scripts perl -pi -e 's/dpkg -i/dpkg --force-architecture -i/' util/utilfunc.sh #modify perl -pi -e 's/5.8.7/5.8.8/' util/utilfunc.sh perl -pi -e 's/libperl/libperl5.8/' util/utilfunc.sh sh install.sh # start installation script
Run through installer as normal. When finished, it starts zimbra, initialises documents, restarts tomcat then says 'Configuration complete - press return to exit'. Press return to get back to root prompt.
# Stop zimbra /etc/init.d/zimbra stop # make sure everything has stopped ps -ef | grep zimbra | grep -v grep # if anything still running, kill it kill (pid) # if it won't die kill -9 (pid)
# refactor perl paths perl -pi -e 's#/usr/bin/perl#/opt/ActivePerl-5.8/bin/perl#' `find /opt/zimbra -type f -exec grep -l '/usr/bin/perl' {} \;` # destructive modify Zimbra scripts # put Debian perl back rm /usr/bin/perl ln -s /usr/bin/perl.prezimbra /usr/bin/perl # restart zimbra /etc/init.d/zimbra start # make sure everything running ok su - zimbra zmcontrol status
Originaly I used this manual Howto Ubuntu 64bit install, thanks for dijichi2.