http://www.perlmonks.org?node_id=1034621

ibm1620 has asked for the wisdom of the Perl Monks concerning the following question:

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.