[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RC2 and perl modules



Hello,

I raised a bug against RC2 here:

https://sourceforge.net/tracker/?func=detail&aid=3412267&group_id=175965&atid=875350

Erik closed this bug off and asked for discussion on this list, so here
I am!

The problem I had was when I had installed RC2 on a stock
Centos 6 installation (which has perl 5.10.1) it did not have
Time::HiRes originally installed, so the module had to be added later
via yum. Erik's point is that the module is listed as a core module at
http://perldoc.perl.org/index-modules-T.html which is true, but the way
RHEL/CentOS is packaged, not all of the core modules are installed with
the base perl package.

So, having been through the list of additional perl modules listed in
the INSTALL file, I tried running LSMB and received this error:

[Wed Sep 21 13:48:46 2011] [error] [client REDACTED] Can't locate
Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
LedgerSMB/Auth/DB.pm line 36.

To fix this, I installed the perl-Time-HiRes rpm (which did indeed
install the module in the core library path).

I would suggest that in order to avoid this confusion the INSTALL file
could also include a list of the core modules explicitly used by LSMB so
that those of us using a distro-provided perl can check that these are
in place.

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107

Attachment: pgpYXRva_fhgs.pgp
Description: PGP signature