Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Perl can't find existing modules

by Anonymous Monk
on Oct 06, 2002 at 21:43 UTC ( #203215=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

After a C program has started a perl skript and has been waiting for it's termination approx. 7000 times some perl modules can't be found. Two examples: Can't locate XSLoader.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/ +i586-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl +/5.8.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/li +b/perl5/site_perl .) at /usr/lib/perl5/5.8.0/i586-linux-thread-multi/ +IO.pm line 5. + + BEGIN failed--compilation aborted at /usr/lib/per +l5/5.8.0/i586-linux-thread-multi/IO.pm line 5. Can't locate IO.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i586-l +inux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0 +/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl +5/site_perl .) at /usr/lib/perl5/5.8.0/i586-linux-thread-multi/IO/Han +dle.pm line 256. BEGIN failed--compilation aborted at /usr/lib/perl +5/5.8.0/i586-linux-thread-multi/IO/Handle.pm line 256. + But all these modules are in @INC and i (as user) can read them so the +se error messages are wrong! What may be the real error and how can i fix it? nobodyo@web.de

Comment on Perl can't find existing modules
Download Code
Re: Perl can't find existing modules
by krusty (Hermit) on Oct 07, 2002 at 02:36 UTC
    just a shot in the dark, but does the c program you are running this under have permission to run the perl script in question,
    Do you get the same thing when you try to run the script from the command line?
      Yes, it has the permissions and the first approx 6000 times the executions of the perl skript are without problems. I'm starting the Program with a bash skript usually from crontab but the problem also occurs when i start it from a command line (xterm).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://203215]
Approved by diotalevi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-12-18 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (44 votes), past polls