Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-2007, 01:56 PM
OpenSource Builder & Moderator
 
Posts: 1,166
Default HOWTO: Ubuntu 64bit Install

Hi

I was interested to have a look at the 5.0beta so I did a quick hack to get it working on my desktop which is running Ubuntu 7.10 gutsy tribe 3 64bit. I have also confirmed this works for Zimbra 4.5.6, and also Ubuntu 6.06LTS 64bit. I can't see any reason it shouldn't work for 6.10 or 7.04 'feisty' either.

Do the whole thing below as root:
sudo su -
I know Ubuntu is often used by 'newbies' but I find it horrendously irritating and patronizing not to be given root shell

================================================== ====
Install Ubuntu 64bit
Setup DNS etc as normal

Download these files, put them in the same directory (eg. /tmp/zimbra-install or something):
Zimbra Installers: Files (Zimbra 5.0.x Ubuntu6 32-bit package)
ActiveState ActivePerl (you want Linux 5.8.8 x86 version, deb packaging, NOT x64 version or 5.10.x version)
32bit OS Libs

If 6.10, 7.x or 8.x release:
cp /etc/lsb-release /etc/prezimbra.lsb-release
change /etc/lsb-release to:
DISTRIB_RELEASE=6.06
mv /etc/debian_version /etc/prezimbra.debian_version

apt-get install ia32-libs
apt-get install libidn11 curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libstdc++6 libstdc++5 lib32ncurses5
# download zimbra-32bit-libs.tar.gz, should be attached to this post
tar -xzf zimbra-32bit-libs.tar.gz
mv lib32/* /usr/lib32
ldconfig
dpkg --force-architecture -i ActivePerl-5.8.8.......blah.blah....deb

mv /usr/bin/perl /usr/bin/perl.ubuntu
ln -s /opt/ActivePerl-5.8/bin/perl /usr/bin/perl.activestate
ln -s /usr/bin/perl.activestate /usr/bin/perl

# make sure sh is bash, not dash
ls -l /bin/sh
if: /bin/sh -> bash then ok, otherwise
rm /bin/sh
ln -s /bin/bash /bin/sh

tar xf zcs-5.0.2_GA_1975.UBUNTU6.20080130235804.tgz
cd zcs-5.0.2_GA_1975.UBUNTU6.20080130235804
export LANG='C'
perl -pi -e 's/dpkg -i/dpkg --force-architecture -i/' util/utilfunc.sh
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
# 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' {} \;`

# put ubuntu perl back
rm /usr/bin/perl
ln -s /usr/bin/perl.ubuntu /usr/bin/perl

# restart zimbra
/etc/init.d/zimbra start

# make sure everything running ok
su - zimbra zmcontrol status

Last edited by dijichi2; 03-07-2008 at 02:13 AM..
Reply With Quote
  #2 (permalink)  
Old 07-21-2007, 08:58 PM
Advanced Member
 
Posts: 193
Default

Great work around diji...
Reply With Quote
  #3 (permalink)  
Old 07-22-2007, 02:45 AM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

Oh yes I forgot to warn:

THIS IS A HACK, DON'T USE IN NUCLEAR POWER STATIONS, AEROPLANES ETC
Reply With Quote
  #4 (permalink)  
Old 10-28-2007, 06:33 AM
Member
 
Posts: 10
Default

Thank You very mutch for that post. Solved my problems too.
Instead of
Quote:
Originally Posted by dijichi2 View Post
# 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' {} \;`
I patched /etc/init.d/zimbra and added two lines ...
Before
Code:
case "$1" in
I added
Code:
ln -sf /usr/bin/perl.activestate /usr/bin/perl
and after
Code:
esac
I switched back with
Code:
ln -sf /usr/bin/perl.ubuntu /usr/bin/perl
Seems to run for me without patching all the perl files.
Perhaps someone can post, wether this is an good idea or not
Thanks!
Michael
Reply With Quote
  #5 (permalink)  
Old 11-01-2007, 10:04 PM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

hiya, glad this workaround worked for you, it was fun working it out

i would be interested to see how your amendment works in the long run. generally i would say it's a bad idea, because you can't guarantee perl won't be invoked after the init script is completed. for instance, this means you can't use any zm* scripts to restart selected components of zimbra as anything that depends on perl will barf. refactoring the perl hashbang is a much more reliable (albeit it dirty!) way of doing it.
Reply With Quote
  #6 (permalink)  
Old 01-25-2008, 02:55 PM
Member
 
Posts: 10
Default

Hi,
Your are absolutely right. But there has not been any need for me to invoke any zm-command since months. It did work for me for the whole time. But as I updated now to 5.0, I exactly went on Your way and I am pretty shure now, that there won't be any issue on invoking zm-commands.
BTW: Hard work to get it run on ubuntu 7.04 64bit, cause the f****** libltd (32bit version) isn't there. May somebody want to put it into the 32bit OS lib tgz? I think this would help anybody on a similar platform.
BTW2: Why is there no support for the quite popular ubuntu 7.xx? It seems to be a very interesting platform.
Have a nice day/zimbra
Michael
Reply With Quote
  #7 (permalink)  
Old 01-25-2008, 03:15 PM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

well fear not, there's a 64bit ubuntu build coming to a zimbra download server near you soon

there is also ubuntu7 targets in the source code, so if zimbra aren't releasing for ubuntu7 yet, they or someone else will at some point (i will if they don't!).
Reply With Quote
  #8 (permalink)  
Old 01-29-2008, 02:22 AM
Loyal Member
 
Posts: 90
Default

can you give an indication when the 64 bit build for ubuntu will be available?
like in a week or in 3 months or a year?

-- Bart.
Reply With Quote
  #9 (permalink)  
Old 02-27-2008, 02:21 AM
Special Member
 
Posts: 167
Default

It looks like the status of Bug #16666 has now changed from Confirmed to 'ASSIGNED'. Anybody got any news/updates on this?

We're itching to migrate to Zimbra on 64bit Ubuntu but really don't want to use dpkg force-architecture/chroot hack.
Reply With Quote
  #10 (permalink)  
Old 02-27-2008, 07:52 AM
Active Member
 
Posts: 26
Default

Quote:
I know Ubuntu is often used by 'newbies' but I find it horrendously irritating and patronizing not to be given root shell
sudo passwd root

set password and you have root account
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.