zajaco0 has asked for the wisdom of the Perl Monks concerning the following question:
I am running perl 5.6.1, bastille linux, and RH 7.3. I'm having trouble using a perl module. I try to load it using the test.pl file
the test.pl file#!/usr/bin/perl BEGIN{ require "/home/neteng/RRDs.pm"; eval('"/home/neteng/RRDs.pm"->import()'); } #use lib qw(/home/neteng/RRDs.pm); <---I have also tried this #use RRDs <--and this
permissions of module
[neteng@netflow neteng]$ ll RRDs.pm -r--r--r-- 1 neteng neteng 3514 Oct 22 13:39 RRDs.pm
[neteng@netflow neteng]$ perl -c test.pl Can't locate loadable object for module RRDs in @INC (@INC contains: / +usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/si +te_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl +5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/ +perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/ +perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at test.pl line + 6 Compilation failed in require at test.pl line 6. BEGIN failed--compilation aborted at test.pl line 8.
Ran as root:
[root@netflow neteng]# perl -c test.pl test.pl syntax OK
it's not the fact that it's not finding the module. I have had that error before....it says Cannot locate file RRDs.pm. This is actually a different error, where it says "Cannot locate loadable module" I think it has something to do with bastille linux. not letting non-root users load modules.
ive spent about 20+ hrs on this problem, im about ready to reformat and not use bastille.
~Zach
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: module problems
by bobf (Monsignor) on Oct 22, 2004 at 18:48 UTC | |
|
Re: module problems
by tachyon (Chancellor) on Oct 22, 2004 at 23:52 UTC | |
|
Re: module problems
by chromatic (Archbishop) on Oct 22, 2004 at 20:55 UTC |