Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: HOWTO: Ubuntu 64bit Install

  1. #1
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    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.

  2. #2
    randall is offline Advanced Member
    Join Date
    Jun 2007
    Location
    Philippines
    Posts
    193
    Rep Power
    8

    Default

    Great work around diji...

  3. #3
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    Oh yes I forgot to warn:

    THIS IS A HACK, DON'T USE IN NUCLEAR POWER STATIONS, AEROPLANES ETC

  4. #4
    empe is offline Member
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    10
    Rep Power
    7

    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

  5. #5
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    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.

  6. #6
    empe is offline Member
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    10
    Rep Power
    7

    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

  7. #7
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    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!).

  8. #8
    eombah is offline Loyal Member
    Join Date
    Nov 2006
    Location
    Netherlands
    Posts
    90
    Rep Power
    8

    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.

  9. #9
    webman's Avatar
    webman is offline Special Member
    Join Date
    Oct 2007
    Location
    North East England
    Posts
    167
    Rep Power
    7

    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.

  10. #10
    Kristaps is offline Active Member
    Join Date
    Sep 2007
    Location
    Ogre
    Posts
    26
    Rep Power
    7

    Default

    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

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I got Ubuntu and Zimbra working
    By pacsteel in forum Installation
    Replies: 73
    Last Post: 06-23-2008, 11:41 AM
  2. Unable to install on Ubuntu 7.04 64 bit
    By geekneck in forum Installation
    Replies: 5
    Last Post: 07-16-2007, 07:52 PM
  3. Unable to install on Ubuntu 7.04 64-bit
    By geekneck in forum Installation
    Replies: 3
    Last Post: 07-14-2007, 10:15 AM
  4. Ubuntu 6.06 LTS server install problems
    By Kavey1978 in forum Installation
    Replies: 17
    Last Post: 05-30-2007, 01:49 AM
  5. Ubuntu 64bit install?
    By R3dn3ck in forum Installation
    Replies: 2
    Last Post: 11-28-2006, 03:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •