Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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 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/ line 5. + + BEGIN failed--compilation aborted at /usr/lib/per +l5/5.8.0/i586-linux-thread-multi/ line 5. Can't locate 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 line 256. BEGIN failed--compilation aborted at /usr/lib/perl +5/5.8.0/i586-linux-thread-multi/IO/ 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?

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://203215]
Approved by diotalevi
What's the matter? Cat got your tongue?...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-02-26 19:33 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (376 votes). Check out past polls.