View Single Post
  #8 (permalink)  
Old 01-06-2008, 02:46 PM
quanah quanah is offline
Zimbra Employee
 
Posts: 580
Default

Quote:
Originally Posted by Zig View Post
I am using Centos 4.6.
I think Zimbra made a mistake. It did not bundle the XS version perllib for RHEL4.
Actually, as I'm the one who bundled it in for RHEL4, I can assure you it is there. For example, running as root without Zimbra's Scalar::Util present, we get:

[root@build01 tmp]# perl /tmp/test.pl
is only avaliable with the XS version at /tmp/test.pl line 7
BEGIN failed--compilation aborted at /tmp/test.pl line 7.

Once Zimbra's Scalar::Util is present, we get success with both the zimbra and root user:

[root@build01 tmp]# perl /tmp/test.pl
[root@build01 tmp]# su - zimbra
[zimbra@build01 ~]$ perl /tmp/test.pl
[zimbra@build01 ~]$


Code:
#!/usr/bin/perl
use lib "/opt/zimbra/libexec";
use lib "/opt/zimbra/libexec/scripts";
use lib "/opt/zimbra/zimbramon/mrtg/lib/mrtg2";
use lib "/opt/zimbra/zimbramon/lib";
use lib "/opt/zimbra/zimbramon/lib/Zimbra";
use Scalar::Util qw/dualvar/;
This is with the 5.0.0 release installed on our RHEL4 box. You may be running into one of the various issues with using CentOS4 instead of RHEL4.

--Quanah
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote