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:
The error message is:use IPC;
But the module *is* in @INC - in /home/charrison/bin: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.
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: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
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?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.
= = = = =
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl unable to locate my module
by LanX (Saint) on May 21, 2013 at 22:26 UTC | |
by ibm1620 (Hermit) on May 21, 2013 at 23:20 UTC | |
by LanX (Saint) on May 22, 2013 at 00:17 UTC | |
by ibm1620 (Hermit) on May 22, 2013 at 00:30 UTC | |
by LanX (Saint) on May 22, 2013 at 00:39 UTC | |
| |
Re: perl unable to locate my module
by Khen1950fx (Canon) on May 21, 2013 at 22:17 UTC | |
by ibm1620 (Hermit) on May 21, 2013 at 23:12 UTC | |
Re: perl unable to locate my module (errno)
by Anonymous Monk on May 21, 2013 at 22:58 UTC | |
by ibm1620 (Hermit) on May 21, 2013 at 23:25 UTC | |
by Anonymous Monk on May 21, 2013 at 23:48 UTC | |
Re: perl unable to locate my module
by ig (Vicar) on May 22, 2013 at 01:07 UTC | |
Re: perl unable to locate my module
by eye (Chaplain) on May 22, 2013 at 01:32 UTC | |
Re: perl unable to locate my module
by roboticus (Chancellor) on May 22, 2013 at 13:48 UTC | |
Re: perl unable to locate my module
by ibm1620 (Hermit) on May 22, 2013 at 23:50 UTC | |
by Anonymous Monk on May 23, 2013 at 07:04 UTC | |
by ibm1620 (Hermit) on May 23, 2013 at 15:42 UTC |
Back to
Seekers of Perl Wisdom