Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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 Config.pm 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 Config.pm 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 Config.pm, some of the ideas should apply. I forget whether or not scripts/programs/etc. read from Config.pm 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
email->secon_kun@hotmail.com
perl -e "map{print++$_}split//,Mdbnr;"


Comment on Re: Compiling Perl with correct values in @INC
Select or Download Code
Re: Re: Compiling Perl with correct values in @INC
by chromatic (Archbishop) on Aug 15, 2002 at 19:28 UTC

    Editing Config.pm won't help anything. It's written when Perl is compiled from the config.sh file built by Configure.sh. 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 Config.pm....
    $ perl -wle 'BEGIN {@INC = ()} use Config' Can't locate Config.pm in @INC (@INC contains:) at -e line 1. BEGIN failed--compilation aborted at -e line 1.

    Abigail

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-08-20 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (121 votes), past polls