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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-07-2006, 05:20 AM
Active Member
 
Posts: 36
Default Centos 64 bit zimbra installation - unable to install zimbra core .

I am using Centos 64bit installed in vmware . i am trying to install network trial edition in the server . the server has all dependencies . i am using the RHEL64 bit zimbra network edition .

it is not able to install zimbra core rpm ( rhel 64 rpm ) and it says installation cancalled . i have even given this also
# ln /usr/bin/libstdc++.so.6 /usr/lib/libstdc++.so.5

can any 1 help me in this case .
this is output

Checking for prerequisites...
NPTL...FOUND
sudo...FOUND sudo-1.6.7p5-30.1.3
libidn...FOUND libidn-0.5.6-1
libidn-0.5.6-1
curl...FOUND curl-7.12.1-8
curl-7.12.1-8
fetchmail...FOUND fetchmail-6.2.5-6
gmp...FOUND gmp-4.1.4-3
gmp-4.1.4-3

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] y

Install zimbra-logger [Y] y

Install zimbra-mta [Y] y

Install zimbra-snmp [Y] y

Install zimbra-store [Y] y

Install zimbra-spell [Y] y

Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
You appear to be installing packages on a platform different
than the platform for which they were built

This platform is CentOS4_64
Packages found: zimbra-core-4.0.3_GA_406.RHEL4_64-20061016134256.x86_64.rpm
This may or may not work


Install anyway? [N] y

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

Removing /opt/zimbra
Installing packages

zimbra-core......zimbra-core-4.0.3_GA_406.RHEL4_64-20061016134256.x86_64.rpm...FAILED
###ERROR###

zimbra-core-4.0.3_GA_406.RHEL4_64-20061016134256.x86_64.rpm installation failed

Installation cancelled

Last edited by chenthil : 11-07-2006 at 05:35 AM.
Reply With Quote
  #2 (permalink)  
Old 11-07-2006, 06:24 AM
OpenSource Builder & Moderator
 
Posts: 1,158
Default

Quote:
it is not able to install zimbra core rpm ( rhel 64 rpm ) and it says installation cancalled . i have even given this also
# ln /usr/bin/libstdc++.so.6 /usr/lib/libstdc++.so.5
i would really think against doing this sort of thing, find the correct package that provides this dependency. the api almost certainly will have changed between these versions and will not work properly.
Reply With Quote
  #3 (permalink)  
Old 01-11-2007, 02:52 PM
Advanced Member
 
Posts: 177
Default

Did you ever resolve this? I just ran into it. I have installed Zimbra successfully 3 times before but this time I have the same error.

Anybody know what is causing this?
Reply With Quote
  #4 (permalink)  
Old 01-11-2007, 05:04 PM
Zimbra Employee
 
Posts: 537
Default

Make sure you install both the 32 and 64 bit versions of compat-libstdc++-33. If it still fails, install the zimbra-core package by hand (rpm -i zimbra-core..) and post the error that rpm returns when it fails.

Unfortunately the installer hides the error returned by rpm.
Reply With Quote
  #5 (permalink)  
Old 01-11-2007, 08:02 PM
Advanced Member
 
Posts: 177
Default

Ok, I have verified that both 64 and 32 bit versions of compat-stdc++. I did notice that the package did not remove itself. I actually had to use yum to remove it as rpm said it was not installed when I tried to remove it but said it was installed when I tried to install it.

Anyway here is the message that I received.

hostname: Unknown host
hostname: Unknown host

Error occurred during initialization of VM
Dumping a shared archive is not supported on the Server JVM.
error: %post(zimbra-core-4.0.5_GA_518.RHEL4_64-20061218052454.x86_64) scriptlet failed, exit status 1


Now the hostname I have is not currently setup in DNS but that should not matter. my /etc/hosts is this

127.0.0.1 localhost.localdomain localhost
10.40.120.19 mail.capesafe.com mail
10.40.120.20 zimbra-dlap.capesafe.com

This machine is the .20 address.

I fixed the hostname:unknownhost error by setting using the hostname command but I still get the rest of the error messages


thanks for the assistance

Doug

Last edited by dlochart : 01-11-2007 at 08:10 PM.
Reply With Quote
  #6 (permalink)  
Old 01-11-2007, 08:20 PM
Zimbra Employee
 
Posts: 537
Default

ah, the postinstall script for the package only knows about RHEL4 in the 4.0.x release. This was fixed in 4.5.x. You can probably get it installed with rpm -i --noscripts zimbra-core..

Also you'll need to fix the hostname problem or you're going to run into problems later.

After you get the package installed you'll need to execute the following by hand.

Code:
#!/bin/bash
# 
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
# 
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 ("License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.zimbra.com/license
# 
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
# the License for the specific language governing rights and limitations
# under the License.
# 
# The Original Code is: Zimbra Collaboration Suite Server.
# 
# The Initial Developer of the Original Code is Zimbra, Inc.
# Portions created by Zimbra are Copyright (C) 2005, 2006 Zimbra, Inc.
# All Rights Reserved.
# 
# Contributor(s):
# 
# ***** END LICENSE BLOCK *****
# 
# Create group, user for zimbra and postfix.

H=`hostname --fqdn`
I=`hostname -i`

#Symlinks
rm -f /opt/zimbra/java
PLAT=`/opt/zimbra/libexec/get_plat_tag.sh`
BIT=`echo $PLAT | awk -F_ '{print $2}'`
if [ "x$BIT" = "x64" ]; then
        ln -s /opt/zimbra/jdk1.5.0_08 /opt/zimbra/java
else
        ln -s /opt/zimbra/jdk1.5.0_08 /opt/zimbra/java
fi

if [ -f /etc/debian_version ]; then
        if [ -f /etc/ld.so.conf ]; then
                mv -f /etc/ld.so.conf /etc/ld.so.conf.$$
                cat /etc/ld.so.conf.$$ | grep -v zimbra > /etc/ld.so.conf
        fi
        cat /opt/zimbra/conf/zimbra.ld.conf >> /etc/ld.so.conf
else
        mkdir -p /etc/ld.so.conf.d
        cp -f /opt/zimbra/conf/zimbra.ld.conf /etc/ld.so.conf.d
fi

if [ ! -d /opt/zimbra/zimbramon/mrtg/work/ ]; then
        mkdir -p /opt/zimbra/zimbramon/mrtg/work/
fi
chown -R zimbra:zimbra /opt/zimbra/zimbramon/mrtg

ldconfig

# Setup syslog

if [ -d /etc/logrotate.d ]; then
        cp -f /opt/zimbra/conf/zmlogrotate /etc/logrotate.d/zimbra
fi

#/opt/zimbra/bin/zmsyslogsetup local

cp -f /opt/zimbra/libexec/zimbra /etc/init.d/zimbra
chmod 755 /etc/init.d/zimbra
if [ -x /sbin/chkconfig ]; then
        chkconfig --add zimbra 
        chkconfig zimbra on
else
        rm -f /etc/rc*.d/S99zimbra
        rm -f /etc/rc*.d/K01zimbra
        ln -s /etc/init.d/zimbra /etc/rc2.d/S99zimbra
        ln -s /etc/init.d/zimbra /etc/rc3.d/S99zimbra
        ln -s /etc/init.d/zimbra /etc/rc4.d/S99zimbra
        ln -s /etc/init.d/zimbra /etc/rc5.d/S99zimbra
        ln -s /etc/init.d/zimbra /etc/rc2.d/K01zimbra
        ln -s /etc/init.d/zimbra /etc/rc3.d/K01zimbra
        ln -s /etc/init.d/zimbra /etc/rc4.d/K01zimbra
        ln -s /etc/init.d/zimbra /etc/rc5.d/K01zimbra
        ln -s /etc/init.d/zimbra /etc/rc6.d/K01zimbra
fi

mkdir -p /opt/zimbra/backup
chown zimbra:zimbra /opt/zimbra/backup
mkdir -p /opt/zimbra/log
chown zimbra:zimbra /opt/zimbra/log
mkdir /opt/zimbra/ssl
chown zimbra:zimbra /opt/zimbra/ssl
mkdir /opt/zimbra/.ssh
chown zimbra:zimbra /opt/zimbra/.ssh

# 64 bit jvm doesn't support the dump
if [ "x$BIT" = "x64" ]; then
        exit 0
fi

/opt/zimbra/java/bin/java -client -Xshare:dump
Reply With Quote
  #7 (permalink)  
Old 01-11-2007, 08:25 PM
Advanced Member
 
Posts: 177
Default

Quote:
Originally Posted by brian View Post
ah, the postinstall script for the package only knows about RHEL4 in the 4.0.x release. This was fixed in 4.5.x. You can probably get it installed with rpm -i --noscripts zimbra-core..
??? Really ??? Then why did it work properly when I installed the 32 bit version on the exact same distro? Maybe they fixed it in 4.0.5 for 32 bit but did not fix the 64 bit
Quote:
Originally Posted by brian View Post
Also you'll need to fix the hostname problem or you're going to run into problems later.
I did that already. I'll try it again. thanks

Doug
Reply With Quote
  #8 (permalink)  
Old 01-11-2007, 08:29 PM
Zimbra Employee
 
Posts: 537
Default

it was 64bit only bug.
Reply With Quote
  #9 (permalink)  
Old 01-11-2007, 08:36 PM
Advanced Member
 
Posts: 177
Default Ok Now What

I did the manual install of core but when I try to run install.sh again it chokes at the same thing.
Do I have to do a complete manual install? Are there instructions for this? The install.sh aborts. It tries to reinstall the core package again.

If I do manage to get the core package installed will I have this same issue with the rest of the packages? If so what scripts will I have to run manually?

One Thing For some reason rpm -i thinks that the package is already installed yet rpm -e thinks it is not installed ?? I actually had to use yum in remove the package.
Reply With Quote
  #10 (permalink)  
Old 01-12-2007, 10:41 AM
Advanced Member
 
Posts: 177
Default

For those that might be interested in this same question here is the workaround.

modify your /etc/redhat-release to say "Red Hat Enterprise Linux" and the install will go as planned.

This bug is fixed in 4.5 and only applies to 64 bit
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