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 (13) Thread Tools Display Modes
  13 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 04-14-2007, 11:16 AM
Member
 
Posts: 13
Default How to install Zimbra Debian 3.1 binaries on Debian Etch 4.0 [Workaround]

Original Post: Debian ETCH 4.0 install
Quote:
Before you start, *setup your DNS*. Zimbra install is very sensitive to correct DNS setup, particularly /etc/hosts and forward resolution of the hostname you are installing on as returned from hostname. Search wiki/forum for correct DNS setup.

change /etc/debian_version to 3.1
apt-get install sudo curl fetchmail libgmp3c2 libssl0.9.7 libdb3
chmod a+rwx /tmp

tar -xzf
cd zcs/

clean out previous attempts:
sh install -u
rm -rf /opt/zimbra
rm /tmp/install*
rm /tmp/zmsetup*
rm /tmp/*zim*

change util/utilfunc.sh
if [ $PLATFORM = "UBUNTU6"]; then
to
if [ $PLATFORM = "UBUNTU6" -o $PLATFORM = "DEBIAN3.1" ]; then

sh install.sh

Strangely detects hostname as domainname (never quite understood why it does this). Select 'Yes' for "Change domain name", change to domainname "domain.com" instead of "host.domain.com"

If you haven't set your MX yet, ignore (you'll need to set this later but its fine for install):
DNS ERROR - none of the MX records for ijichi.org
resolve to this host
It is suggested that the MX record resolve to this host
Re-Enter domain name? [Yes]
^^ Choose "No"

Install Menu: Choose 6 for zimbra-store, 4 for Admin Password, enter password, 'r' or for previous menu, 'a' to apply, Enter for next two questions:
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.15938]
Then 'Yes' for: The system will be modified - continue? [No] yes

Checkout output carefully for *any* errors, should install fine.

You can change /etc/debian_version back to 4.0 after install but you'll have to change it for each upgrade
I suggest so makes this thread sticky. The above Posting is hidden somewhere in another thread and it would have saved me a lot of trouble had i found it right at the beginning!

Last edited by xtin : 04-14-2007 at 12:44 PM.
Reply With Quote
  #2 (permalink)  
Old 04-14-2007, 11:28 AM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Before I do, can you post:
sudo dpkg -l | grep zimbra
zmdumpenv
?

I've seen some serious issues with the package management on etch, and I want to make sure they're resolved before I stick this.

Thanks
john

(PS, If you want, you can e-mail them to me jholder@zimbra.com if you're worried about security)
Reply With Quote
  #3 (permalink)  
Old 04-14-2007, 12:54 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Perfect!
This worries me tho:
Code:
/opt/zimbra/bin/zmdumpenv: line 55: rpm: command not found
The dpkg is good though.

I'm gonna stick this cause it's cool, and we like testers; however, I have to give you this warning:
These changes may cause some future problems with upgrades, and the uninstaller probably won't work right.

Have fun!
Reply With Quote
  #4 (permalink)  
Old 04-14-2007, 01:30 PM
Member
 
Posts: 13
Default

I am running zimbra in a xen domU environment and there's no nptl in the debian 3.1 version. Therefore I have to use etch. (Unless there's a way to get nptl running - didn't find a easy one though )

As Debian 4.0 has been released it'd be a smart move to release 4.0 zimbra binaries. Debian is one of the most used and most stable linux server distros around.

I wouldn't worry about the missing rpm command - there's none. Debian's using apt-get/dpkg for package management!
Reply With Quote
  #5 (permalink)  
Old 04-14-2007, 01:35 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Well, it doesn't seem that they've fixed that nasty redo.log permissions bug. It's not a zimbra bug, but a debian bug. Until they fix it, We won't have a NE build of debian.

Also, I know that they use apt for pkg management. It doesn't worry me that it says RPM, it worries me that the script is calling the RPM command.
Reply With Quote
  #6 (permalink)  
Old 04-17-2007, 04:42 PM
OpenSource Builder & Moderator
 
Posts: 1,158
Default

Hi

To get NPTL on debian 3.1, just install any 2.6 kernel, you get nptl at special offer, no extra charge. FWIW, I'm still seeing the kernel permissions bug under DEBIAN3.1 even with the latest uptodate 2.6 kernel, and it affects mailboxes as well as redolog, but I haven't seen any similar problems under DEBIAN 4.0.

The rpm thing is just the zmdumpenv only currently handles OSX, and then falls back to rpm as default. To fix it for dpkg, change:

Quote:
if [ x$P = "xMACOSX" -o "x$P" = "xMACOSXx86" ]; then
ls -ld /Library/Receipts/zimbra-*
else
rpm -qi zimbra-core
fi
to

Quote:
if [ x$P = "xMACOSX" -o "x$P" = "xMACOSXx86" ]; then
ls -ld /Library/Receipts/zimbra-*
elif [ "x$P" = "xUBUNTU6" -o "x$P" = "xDEBIAN3.1" ]; then
dpkg -s zimbra-core
else
rpm -qi zimbra-core
fi
BTW jholder you're right, it doesnt update to 4.5.4 properly!
Reply With Quote
  #7 (permalink)  
Old 04-17-2007, 04:47 PM
Member
 
Posts: 13
Default

I couldn't get NPTL for Debian 3.1 in a XEN Environment. I was running kernel 2.6.18 without it. But maybe I am missing something...

As Debian 4.0 is now officially released, it's time to release a 4.0 binary
Reply With Quote
  #8 (permalink)  
Old 04-17-2007, 05:06 PM
OpenSource Builder & Moderator
 
Posts: 1,158
Default

In order to upgrade DEBIAN4 from 4.5.3 to 4.5.4, I had to do the following:

*** TAKE A BACKUP OF /opt/zimbra ***

make sure /etc/debian_release says 3.1
apt-get install libstdc++5
tar -xzf zcs-4.5.4_GA_763.DEBIAN3.1.tgz
cd zcs
edit util/utilfunc.sh
change util/utilfunc.sh
if [ $PLATFORM = "UBUNTU6"]; then
to
if [ $PLATFORM = "UBUNTU6" -o $PLATFORM = "DEBIAN3.1" ]; then

run install.sh

it fails doing the upgrade - zmsetup.pl doesn't detect last installed version so the upgrade portion of the script fails, as it doesn't know what version to upgrade from.

you can however get it working, by removing all lines in /opt/zimbra/.install_history after this:
0000000000: INSTALL SESSION START
0000000000: INSTALLED
0000000000: INSTALL SESSION COMPLETE
0000000000: CONFIG SESSION START
0000000000: CONFIGURED BEGIN
0000000000: CONFIGURED END
0000000000: CONFIG SESSION COMPLETE

and running /opt/zimbra/libexec/zmsetup.pl - it does a 'fresh' install but all your data and settings should still be intact. You did take a backup, right?
Reply With Quote
  #9 (permalink)  
Old 04-19-2007, 12:07 AM
New Member
 
Posts: 3
Default

[quote=xtin;43581]Original Post: Debian ETCH 4.0 install

Hi,

I have tried to follow the install procedure for Etch, but unfortunately, install fails here:

--------------------

Checking for prerequisites...
NPTL...FOUND
sudo...FOUND sudo-1.6.8p12-4
libidn11...FOUND libidn11-0.6.5-1
curl...FOUND curl-7.15.5-1
fetchmail...FOUND fetchmail-6.3.6-1
libpcre3...FOUND libpcre3-6.7-1
libgmp3c2...FOUND libgmp3c2-2:4.2.1+dfsg-4
libexpat1...FOUND libexpat1-1.95.8-3.4
libxml2...FOUND libxml2-2.6.27.dfsg-1
libstdc++6...FOUND libstdc++6-4.1.1-21
libstdc++5...FOUND libstdc++5-1:3.3.6-15
openssl...FOUND openssl-0.9.8c-4
Checking for required space...

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell


Select the packages to install

Install zimbra-ldap [Y]

Install zimbra-logger [Y]

Install zimbra-mta [Y]

Install zimbra-snmp [Y]

Install zimbra-store [Y]

Install zimbra-spell [Y]

Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell

The system will be modified. Continue? [N] Y

Removing /opt/zimbra
Installing packages

zimbra-core......zimbra-core_4.5.4_GA_763.DEBIAN3.1_i386.deb...FAILED
###ERROR###

zimbra-core_4.5.4_GA_763.DEBIAN3.1_i386.deb installation failed

Installation cancelled

--------------------

Will Debian Etch be supported for the open-source version of Zimbra, or will it be dropped, like in the network version of Zimbra?

Regards,

Philippe Lang
Reply With Quote
  #10 (permalink)  
Old 04-19-2007, 10:36 AM
Member
 
Posts: 13
Default

I guess you are trying to install Zimbra on a AMD64 kernel. This will not work! The binaries are i386 only.
To resolve this, you'll either have to install a 32bit Kernel or compile Zimbra from source.

If you're installing on a 32bit OS and you're still get this error, please post the logfile produced during the install.

(And please paste lenghty output from the console or logfiles within [ code] [ /code] (whitout the whitespaces after the [.) tags. This will make the thread shorter and hence we have to scroll less. Thx)
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0