Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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?
    --perl.j

      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 Config.pm in @INC (@INC contains: .).

        BEGIN failed--compilation aborted.
        --perl.j

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2016-10-01 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (3 votes). Check out past polls.