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 02-02-2006, 12:59 AM
New Member
 
Posts: 3
Default installin zimbra on centos 64 bit problem

I installed zimbra on centos 4.2 64bit.
Antispam, antivirus, logger and snmp are stopped and if i try to start the service I receive the following error

ERROR: MISSING REQUIRED BASIC MODULES:
Time::HiRes
Unix::Syslog
Compress::Zlib
BEGIN failed--compilation aborted at /opt/zimbra/amavisd/sbin/amavisd line 148.

I have installed all libraries (zlib included)but if I run the command again, the same error still occurs.

I have tried to export mi PERLLIB

su - zimbra
export PERLLIB=''............. (path obtained with command "perl -V")
but if I run the command again, the same error still occurs.

any idea?
Reply With Quote
  #2 (permalink)  
Old 02-02-2006, 07:03 AM
Zimbra Employee
 
Posts: 2,103
Default Perllib

Add your perl lib path to the PERLLIB variable in /opt/zimbra/.bashrc, and re-try.

Also, this helps too (same file, after "export PERLLIB"):
PERL5LIB=${PERLLIB}

export PERL5LIB
Reply With Quote
  #3 (permalink)  
Old 02-02-2006, 01:50 PM
New Member
 
Posts: 3
Unhappy re:perlib

in /opt/zimbra/.bashrc I had alredy

PERLLIB=/opt/zimbra/zimbramon/lib:/opt/zimbra/zimbramon/lib/i386-linux-thread-multi:/opt/zimbra/zimbramon/lib/i586-linux-thread-multi:/opt/zimbra/zimbramon/lib/darwin-thread-multi-2level
export PERLLIB

I added the follow lines:

PERL5LIB=${PERLLIB}
export PERL5LIB

but doesn't work! I have the same error when I try to start amavis
Reply With Quote
  #4 (permalink)  
Old 02-02-2006, 02:51 PM
Zimbra Employee
 
Posts: 2,103
Default 64 bit

sounds like it's not going to work.
Reply With Quote
  #5 (permalink)  
Old 03-29-2006, 03:00 AM
Senior Member
 
Posts: 55
Default Difference between CentOS and RHEL (64 bit)

I have Zimbra running fine, with no quirks, on a RHEL 4 ES u3 (32 bit OS)* server that I set up about 2 weeks ago.

On a 2nd server, instead of Red Hat, I used CentOS 4.3 (64 bit), which is supposed to be binary compatible w/RHEL 4 u3 (64 bit), same source code, etc.

But i'm getting the same symptoms as Luca, although I don't get any warnings about missing modules. As zimbra user (su - zimbra), the command "zmcontrol start" shows all services as starting successfully (usually, a few times the MTA has failed).

However, a check with zmcontrol status then shows that anti-spam, anti-virus, logger and snmp are stopped.

I can log into the admin account's email (but not the admin panel, for some reason, despite firewall ports being set the same on both machines) on the CentOS box, and create an email, etc.

This is totally not your guys job, to test out a product that is advertised for Red Hat on CentOS, but have you done any testing internally that has shown differences in Zimbra running on one vs. the other?

Or should I cave in and buy another Red Hat subscription?

[ Note that I edited this post: The 1st server is at a dedicated hosting facility, and although the CPU is EMT64, the guys who installed RHEL used the 32 bit version, not the 64 bit].

***UPDATE:

So I'm going to do my Linux-newbie best to try to figure out how to set the env vars so that PERLLIB and PERL5LIB are pointing to the right 64-bit libraries for zimbra user context (did that make sense?). From the posts above, and RobRankin (thanks for the help!) it seems like just editing the .bashrc file (?).

If I get it working, I'll post newbie-friendly tips (it's been a looonggg time since I was working on a *nix system, and that was Solaris...

Last edited by Kirkaiya; 03-29-2006 at 07:29 AM..
Reply With Quote
  #6 (permalink)  
Old 03-29-2006, 04:42 AM
Intermediate Member
 
Posts: 22
Default

The problem is probably the order of paths in PERLLIB in the Zimbra users environment. Change the order so perl looks in your systems perl install for the needed modules first, and it will all work.

I've got Zimbra running on RHEL4 64bit and everything works as long as you:

1.) make sure all the needed perl modules are available in 64bit perl (install them all from CPAN)
2.) change the zimbra user's environment to use those modules, instead of the ones included with Zimbra.

Do a 'find . -name *.pm' in /opt/zimbra and you can get a good idea of what you need in your system perl paths.
Reply With Quote
  #7 (permalink)  
Old 03-29-2006, 08:10 AM
Senior Member
 
Posts: 55
Default Thank you Rob - any chance you can give some more pointers?

Hi - result of find . -name *.pm in the zimbra opt directory was a *lot* of stuff, the paths mostly seemed to be:

.... /zimbramon/lib/Mail/
.... /zimbramon/lib/Mail/SpamAssassin
.... /zimbramon/lib/Convert
.... /zimbramon/lib/MIME/
.... /zimbramon/lib/MIME/Field
.... /zimbramon/lib/LWP
.... /zimbramon/lib/Archive
.... /zimbramon/lib/Archive/Zip
.... /zimbramon/lib/SOAP
.... /zimbramon/lib/i386-linux-thread-multi

(in above, .... means the full path to that point). But based on the different outputs of perl -V (from root context vs. zimbra context), I was wondering whether something like:

Code:
PERLIB=/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi:/usr/lib/perl5/5.8.5:/usr/lib64/perl5
/site_perl/5.8.5/x86_64-linux-thread-multi:/usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thre
ad-multi:/usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi:/usr/lib64/perl5/site_per
l/5.8.2/x86_64-linux-thread-multi:/usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi:
/usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi:/opt/zimbra/zimbramon/lib:/opt/zim
bra/zimbramon/lib/i386-linux-thread-multi:/opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-mul
ti:/opt/zimbra/zimbramon/lib/i586-linux-thread-multi:/opt/zimbra/zimbramon/lib/darwin-thread-
multi-2level
in the .bashrc file in /opt/zimbra would accomplish this? It's late where I am, and my brain is dead, so that's just appending the main paths from root context perl paths to the .bashrc for zimbra.... Is there any chance you'd be willing to post the PERLLIB line from your working 64-bit install? I would be very much in your debt, thanks in advance for any tips, and I appreciate your help. I'm sort of learning as I go...
Reply With Quote
  #8 (permalink)  
Old 03-29-2006, 03:22 PM
Senior Member
 
Posts: 53
Default

Are you (any of you) using the RHEL binaries from zimbra and just updating the .pms or are you doing this from source as others have suggested when doing a 64 bit install. I ask this mainly cause I'm in a pickle in that my Atlon X2 4400+ system won't take a 32 bit CentOS install, it fails after ~50% of "Performing Post Install Configuration" but 64 bit installs perfect every time I've code named my Zimbra Project as "Murphy" ...

Any way looking at the source code download it looks like its a version behind the binary downloads, (which I'm running on a P4 3ghz laptop ) And it doesn't look like it's gunna be an easy ./configure, make, make install to build it anyway.

OK OK I guess I'm venting a little but I'm under the gun and need to have a viable solution sooner rather than later... anybody have anything

TIA
Reply With Quote
  #9 (permalink)  
Old 03-29-2006, 04:06 PM
Zimbra Employee
 
Posts: 4,792
Default

Latest source is in CVS. We only update the tgz for a major release.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #10 (permalink)  
Old 03-29-2006, 05:51 PM
Senior Member
 
Posts: 55
Default Using RHEL binaries for Network Edtion

Quote:
Originally Posted by Dux T
Are you (any of you) using the RHEL binaries from zimbra and just updating the .pms or are you doing this from source as others have suggested when doing a 64 bit install. I ask this mainly cause I'm in a pickle in that my Atlon X2 4400+ system won't take a 32 bit CentOS install, it fails after ~50% of "Performing Post Install Configuration" but 64 bit installs perfect every time I've code named my Zimbra Project as "Murphy" ...
Hi Dux - I'm working with the "Network Edition", using the binaries for RHEL 4.3. I have it running on one production machine (Pentium EMT64, but with 32-bit RHEL installed), and everything went smoothly.

The problems I'm having are with using the Zimbra RHEL binaries on a CentOS x86_64 (4.3) install. CPU is an intel Pxxx EMT64.

The mailbox, MTA and spell-check all run, and I can log into the admin@mydomain.com account (they don't depend on Perl it seems). I *think* Robrankin was saying that he has the RHEL binaries working on 64-bit RHEL, and that he just changed the PERLLIB env vars to point to the 64bit perl mods, and went and got the modules he was missing from CPAN (compiling them on his system, I assume).

I wonder why the 32-bit CentOS is failing to install for you? You're sure it's not the installation media, blah blah? You're making me nervous, because if I can't get everything running on 64-bit CentOS, my backup plan is to use 32-bit. I'm going to spend a few days of spare time playing with Perl and see if I can get it to work, if I find out anything, I'll post it here.
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.