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

In reply to module problems by zajaco0

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.