Perl is failing to compile a program of mine that contains the line:
use IPC;
The error message is:
Can't locate IPC.pm in @INC (@INC contains: /home/charrison/bin /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 + /mxhome/charrison/private/WDI/server/testtom line 26. BEGIN failed--compilation aborted at /mxhome/charrison/private/WDI/ser +ver/testtom line 26.
But the module *is* in @INC - in /home/charrison/bin:
lincoln:/home/charrison/bin$ ll total 12 -rw-r--r-- 1 charrison prod 7065 May 21 15:33 IPC.pm -rwxr-xr-x 1 charrison prod 1382 May 21 15:33 clhtest -rw-rw-r-- 1 charrison charrison 0 Apr 11 14:30 touched
What's unusual about the situation is that the program that exec'ed the Perl program that's failing was launched by xinetd. If I remove 'use IPC;' and put in a few prints, it compiles and I get this output:
Here is env: $VAR1 = { 'REMOTE_HOST' => '::ffff:127.0.0.1', 'PATH' => '/sbin:/usr/sbin:/bin:/usr/bin' }; Here is umask: 2 Here is getpwuid: charrison Just ran touch /mxhome/charrison/testtom_was_here successfully.
So I have no problem writing to my home directory, and there doesn't appear to be anything in IPC.pm's permissions preventing it from being read. What am I missing?

= = = = =

Update 1: I mentioned that am running this from xinetd, but I neglected to mention that, running it from my command line, it works fine.


In reply to perl unable to locate my module by ibm1620

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.