Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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.


Comment on Re: @INC Errors
Select or Download Code
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 chanting in the Monastery: (3)
As of 2014-09-21 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls