Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: @INC Errors

by chromatic (Archbishop)
on Oct 09, 2011 at 02:50 UTC ( #930404=note: print w/replies, xml ) Need Help??

in reply to @INC Errors

@INC normally contains ., unless running in taint mode. @INC should never only contain ., which appears to be your problem. Something changed in your environment.

Improve your skills with Modern Perl: the free book.

Replies are listed 'Best First'.
Re^2: @INC Errors
by ikegami (Pope) on Oct 09, 2011 at 05:41 UTC
    This problem would be caused by an inability to access Perl's library directories. Maybe you don't have permission anymore, or maybe the directories are gone.

      Does perl remove from @INC at startup (or module load time) if it can't stat those directories? I've never seen that. Clever.

      Improve your skills with Modern Perl: the free book.

        It does for me with ActivePerl (which is a relocatable build).
Re^2: @INC Errors
by perl.j (Pilgrim) on Oct 09, 2011 at 13:02 UTC
    So how do I fix it?

      Figure out what changed in your environment. Check that the directories in perl -V exist and have permissions which allow you to read them.

      Improve your skills with Modern Perl: the free book.

        I get the following error when running perl -V: Can't locate in @INC (@INC contains: .).

        BEGIN failed--compilation aborted.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930404]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2018-04-25 09:04 GMT
Find Nodes?
    Voting Booth?