Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Compiling Perl with correct values in @INC

by Necos (Friar)
on Aug 15, 2002 at 18:42 UTC ( #190487=note: print w/replies, xml ) Need Help??

in reply to Compiling Perl with correct values in @INC

Looking at my file, there seems to be some options for path inclusion of libraries.

Here are some of the more interesting lines from my Win32 machine:

archlib='C:\Perl\lib' privlibexp='C:\Perl\lib' glibpth='/usr/shlib /lib/pa1.1 /usr/lib/large /lib /usr/lib /usr/lib/ +386 /lib/386 /lib/large /usr/lib/small /lib/small /usr/ccs/lib /usr/u +cblib /usr/shlib ' installsitearch='C:\Perl\site\lib' installsitelib='C:\Perl\site\lib' locincpth='/usr/local/include /opt/local/include /usr/gnu/include /opt +/gnu/include /usr/GNU/include /opt/GNU/include' loclibpth='/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib /us +r/GNU/lib /opt/GNU/lib' sitearch='C:\Perl\site\lib' sitearchexp='C:\Perl\site\lib' sitelib='C:\Perl\site\lib' sitelibexp='C:\Perl\site\lib' xlibpth='/usr/lib/386 /lib/386'
You might want to check your and see if all the lib paths are correct. This might help you to correct the @INC array (it should, but I may be wrong). Hope this helps some.

Update: I should note that even though I looked at a Win32, some of the ideas should apply. I forget whether or not scripts/programs/etc. read from unless explicitly stated (i.e., use Config;). If I am wrong, I'd like some correction on the issue.

Theodore Charles III
Network Administrator
Los Angeles Senior High
4650 W. Olympic Blvd.
Los Angeles, CA 90019
323-937-3210 ext. 224
perl -e "map{print++$_}split//,Mdbnr;"

Replies are listed 'Best First'.
Re: Re: Compiling Perl with correct values in @INC
by chromatic (Archbishop) on Aug 15, 2002 at 19:28 UTC

    Editing won't help anything. It's written when Perl is compiled from the file built by The basic @INC paths are compiled into the Perl binary itself. Think about it this way -- if Perl can be installed just about anywhere (and it can be), how would it know where to find Config to find out where the modules are installed?

Re: Compiling Perl with correct values in @INC
by Abigail-II (Bishop) on Aug 16, 2002 at 08:38 UTC
    Of course, when your @INC is incorrect, perl can't find
    $ perl -wle 'BEGIN {@INC = ()} use Config' Can't locate in @INC (@INC contains:) at -e line 1. BEGIN failed--compilation aborted at -e line 1.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2017-10-21 23:48 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (271 votes). Check out past polls.