Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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]
[Discipulus]: new $workstation is arrived: SSD 250, sata 1TB, 16G RAM, only i5 CPU.. seems a good one: guess what first user installation will be?
[Corion]: Discipulus: Notepad++, or Perl ;)
[marto]: xubuntu or lubuntu
[Corion]: :-D
[marto]: my desktop is a core2 duo, 120GB SSD, 4GB RAM, boots to (GUI) login in less than 10 seconds from cold start
[Discipulus]: mah, winbuntu 10...
[marto]: whent he boys start school I'll build myself as new machine, ryzen based
[Corion]: marto: That's cool! I think my (home) desktop spends 30 seconds in the BIOS...
[Corion]: marto: Heh - currently they seem promising, but I think I'll stay with nVidia+Intel for the time being, as I've been bitten too often by bad AMD drivers
Discipulus is (still?) not a big fan of notepad++

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-07-27 08:52 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (407 votes). Check out past polls.