perl - Can't locate Date/Calc.pm
When I try to execute a perl script, I'm getting the following error:
Can't locate Date/Calc.pm in @INC (@INC contains: /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at /usr/perl5/5.6.1/lib/BCBS.pm line 4.
BEGIN failed--compilation aborted at /usr/perl5/5.6.1/lib/BCBS.pm line 4.
Compilation failed in require at /apps/apache/cgi-bin/barcodes/cips/barcode.pl line 4.
BEGIN failed--compilation aborted at /apps/apache/cgi-bin/barcodes/cips/barcode.pl line 4.
I tried installing the module manually several times by compiling the Makefile.pl in the tar but kept getting this error. So I was fiddling around and found how to access cpan.org directly through perl using:
perl -MCPAN -e shell
and installing the Date::Calc mod from there.
cpan> install Date::Calc
Date::Calc is up to date.
I'm still getting the error, although now it's added the bit about BCBS.pm, which was previously the actual .pl code I was executing.
I have two versions of perl on the system I'm running, 5.00 and 5.61, but I've changed the path statement to look for 5.61 first in /usr/local/bin. The beginning of the file in the error message is:
package BCBS;
use Exporter;
use Time::localtime;
use Date::Calc qw(Add_Delta_Days);
$VERSION = 1.00;
@ISA = qw(Exporter);
Is there some noticeable snafu I'm missing here? Any help would guarantee idol worship for at least three continuous weeks, or twenty-one days total of piecemeal worshipping.
|