Installing Zimbra 5.0 on Debian 4.0 Etch AMD64: Difference between revisions

(Zimbra 5.0 installation on Debian 4.0 Etch AMD64)
 
No edit summary
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Archive}}{{Article Infobox|{{admin}}||{{ZCS 5.0}}|}}Zimbra Open Source Edition 5.0 for Debian 4.0 is x86 (32bit) only. You can compile it from source or install 32bit version on 64bit system (Debian 4.0 AMD64).
[[Category:Installation]] [[Category:Debian]] [[Category:Ubuntu]] [[Category:x86_64]] [[Category:Installation_Articles]]


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).
'''NOTE: ActivePerl 5.8 doesn't support DB_File therefore the spamassassin learning is CRIPPLED as zmtrainsa cannot access the bayes database!!!!!!!!!!'''


== Installation 32bit libraries and ActivePerl ==
== Installation 32bit libraries and ActivePerl ==
Line 8: Line 7:
You need some 32libs, as is writen in [http://www.debian-administration.org/articles/531 Using proprietary i386 apps on an amd64 system] and [http://www.debian-administration.org/articles/534 Running 32-bit Applications on 64-bit Debian GNU/Linux]. For Zimbra you need ActivePerl too.
You need some 32libs, as is writen in [http://www.debian-administration.org/articles/531 Using proprietary i386 apps on an amd64 system] and [http://www.debian-administration.org/articles/534 Running 32-bit Applications on 64-bit Debian GNU/Linux]. For Zimbra you need ActivePerl too.
Download:
Download:
* [http://downloads.activestate.com/ActivePerl/Linux/5.8/ ActivePerl 5.8] ActiveState ActivePerl 5.8.8 x86 version only! other doesn't work (NOT x64 or 5.10.x version).
* [http://downloads.activestate.com/ActivePerl/Linux/5.8/ ActivePerl 5.8] -- ActiveState ActivePerl 5.8.8 x86 version only! other doesn't work (NOT x64 or 5.10.x version).
* [http://www.zimbra.com/community/downloads.html Zimbra 5.0 Debian 4 x86]  
* [http://www.zimbra.com/community/downloads.html Zimbra 5.0 Debian 4 x86]
* This 32bit libs [http://varlogmessages.vroomvroom.org/download/zimbra-32bit-libs.tar.gz Unofficial Zimbra 5.0 32bit libs package] or download all libraries in archive from [http://www.debian.org/distrib/packages#search_packages Debian package search]
* [http://varlogmessages.vroomvroom.org/download/zimbra-32bit-libs.tar.gz Unofficial Zimbra 5.0 32bit libs package] or download all libraries in this archive from [http://www.debian.org/distrib/packages#search_packages Debian package search]
Do all as root
Do all as root
<pre>
<pre>
Line 17: Line 16:
Install '''ia32-libs''' and some 64bit packages
Install '''ia32-libs''' and some 64bit packages
<pre>
<pre>
apt-get install ia32-libs
apt-get install ia32-libs libidn11 curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libstdc++6 libstdc++5 lib32ncurses5 file libgetopt-mixed-perl libmime-explode-perl
apt-get install libidn11 curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libstdc++6 libstdc++5 lib32ncurses5
</pre>
</pre>
Unpack libs to '''/emul/ia32-linux/usr/lib/'''
Unpack libs to '''/emul/ia32-linux/usr/lib/'''
Line 26: Line 24:
ldconfig  # bind library changes
ldconfig  # bind library changes
</pre>
</pre>
or download and unpack *.deb packages to '''/emul/ia32-linux'''. Example:
or download packages from ''Debian package search'' and unpack to '''/emul/ia32-linux'''. For example:
<pre>
<pre>
wget http://security.debian.org/debian-security/pool/updates/main/p/pcre3/libpcre3_6.7+7.4-3_i386.deb
wget http://security.debian.org/debian-security/pool/updates/main/p/pcre3/libpcre3_6.7+7.4-3_i386.deb
Line 41: Line 39:
ln -s /opt/ActivePerl-5.8/bin/perl /usr/bin/perl
ln -s /opt/ActivePerl-5.8/bin/perl /usr/bin/perl
</pre>
</pre>
You need use bash as sh (not dash etc.)
Your '''sh''' need be bash not dash etc.
<pre>
<pre>
ls -l /bin/sh
ls -l /bin/sh
Line 48: Line 46:
ln -s /bin/bash /bin/sh
ln -s /bin/bash /bin/sh
</pre>
</pre>
== Install Zimbra ==
== Install Zimbra ==
Install Zimbra 5.0 for Debian x86. You can use this [http://howtoforge.com/zimbra-collaboration-suite-5.0-on-debian-etch Zimbra 5.0 Debian installation manual], but skip "6 Get Zimbra" and do:
Install Zimbra 5.0 for Debian x86. You can use this [http://howtoforge.com/zimbra-collaboration-suite-5.0-on-debian-etch Zimbra 5.0 Debian installation how to], but replace step "6 Get Zimbra" by:
<pre>
<pre>
tar xf zcs-5.0.2_GA_1975.UBUNTU6.20080130235804.tgz # extract tar package
tar xf zcs-5.0.2_GA_1975.UBUNTU6.20080130235804.tgz # extract tar package
Line 70: Line 69:
kill -9 (pid)
kill -9 (pid)
</pre>
</pre>
 
Destructive modify Zimbra scripts
<pre>
perl -pi -e 's#/usr/bin/perl#/opt/ActivePerl-5.8/bin/perl#' `find /opt/zimbra -type f -exec grep -l '/usr/bin/perl' {} \;`
</pre>
Rollback Debian perl changes
<pre>
<pre>
# 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
rm /usr/bin/perl
ln -s /usr/bin/perl.prezimbra /usr/bin/perl
ln -s /usr/bin/perl.prezimbra /usr/bin/perl
 
</pre>
# restart zimbra
Make sure everything running ok
<pre>
/etc/init.d/zimbra start
/etc/init.d/zimbra start
# make sure everything running ok
su - zimbra
su - zimbra
zmcontrol status
zmcontrol status
</pre>
</pre>
When something write, that '''"/opt/zimbra/something: error while loading shared libraries: some_library.so.x: cannot open shared object file: No such file or directory"''', You need unpack 32bit version of this library to '''/emul/ia32-linux'''.
== References ==
* original [http://www.zimbra.com/forums/installation/10306-howto-ubuntu-64bit-install.html Howto Ubuntu 64bit install], thanks for [http://www.zimbra.com/forums/members/dijichi2.html dijichi2]
* [http://www.debian-administration.org/articles/531 Using proprietary i386 apps on an amd64 system] and [http://www.debian-administration.org/articles/534 Running 32-bit Applications on 64-bit Debian GNU/Linux]


Originaly I used this manual [http://www.zimbra.com/forums/installation/10306-howto-ubuntu-64bit-install.html Howto Ubuntu 64bit install], thanks for '''dijichi2'''.
{{Article Footer|Zimbra Collaboration Suite Open Source Edition 5.0.2 GA Release|3/10/2008}}


{{Article Footer|Zimbra Collaboration Suite Open Source Edition 5.0.2|10/3/2008}}
[[Category:Installation Guides]]
[[Category:ZCS 5.0]]
[[Category:Installation]]
[[Category:Debian]]
[[Category:Ubuntu]]
[[Category:x86_64]]

Latest revision as of 17:07, 25 March 2015

Admin Article

Article Information

This article applies to the following ZCS versions.

ZCS 5.0 Article ZCS 5.0

Zimbra Open Source Edition 5.0 for Debian 4.0 is x86 (32bit) only. You can compile it from source or install 32bit version on 64bit system (Debian 4.0 AMD64).

NOTE: ActivePerl 5.8 doesn't support DB_File therefore the spamassassin learning is CRIPPLED as zmtrainsa cannot access the bayes database!!!!!!!!!!

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:

Do all as root

sudo su

Install ia32-libs and some 64bit packages

apt-get install ia32-libs libidn11 curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libstdc++6 libstdc++5 lib32ncurses5 file libgetopt-mixed-perl libmime-explode-perl

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 packages from Debian package search and unpack to /emul/ia32-linux. For 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

Your sh need be bash 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 how to, but replace step "6 Get Zimbra" by:

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)

Destructive modify Zimbra scripts

perl -pi -e 's#/usr/bin/perl#/opt/ActivePerl-5.8/bin/perl#' `find /opt/zimbra -type f -exec grep -l '/usr/bin/perl' {} \;`

Rollback Debian perl changes

rm /usr/bin/perl
ln -s /usr/bin/perl.prezimbra /usr/bin/perl

Make sure everything running ok

/etc/init.d/zimbra start
su - zimbra
zmcontrol status

When something write, that "/opt/zimbra/something: error while loading shared libraries: some_library.so.x: cannot open shared object file: No such file or directory", You need unpack 32bit version of this library to /emul/ia32-linux.

References

Verified Against: Zimbra Collaboration Suite Open Source Edition 5.0.2 GA Release Date Created: 3/10/2008
Article ID: https://wiki.zimbra.com/index.php?title=Installing_Zimbra_5.0_on_Debian_4.0_Etch_AMD64 Date Modified: 2015-03-25



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search