Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi, I'm on MacOS X and I have a couple of machines here, one Powerbook and one G5 desktop. Perl (apparently reporting the same version for both) has different @INC for each, and this is causing issues for gd-pm581 (GD.pm) that I have installed via fink (as I can never get it to compile cleanly out of CPAN)
ashtaroth:~ dswan$ perl -e "print (@INC)" /sw/lib/perl5/5.8.1/darwin-thread-multi-2level/sw/lib/perl5/5.8.1/sw/l +ib/perl5/sw/lib/perl5/darwin/System/Library/Perl/5.8.1/darwin-thread- +multi-2level/System/Library/Perl/5.8.1/Library/Perl/5.8.1/darwin-thre +ad-multi-2level/Library/Perl/5.8.1/Library/Perl/Network/Library/Perl/ +5.8.1/darwin-thread-multi-2level/Network/Library/Perl/5.8.1/Network/L +ibrary/Perl. ashtaroth:~ dswan$
and
Embley-m6:/System/Library/Perl/5.8.1/darwin-thread-multi-2level dswan$ + perl -e "print (@INC)" /System/Library/Perl/5.8.1/darwin-thread-multi-2level/System/Library/P +erl/5.8.1/Library/Perl/5.8.1/darwin-thread-multi-2level/Library/Perl/ +5.8.1/Library/Perl/Network/Library/Perl/5.8.1/darwin-thread-multi-2le +vel/Network/Library/Perl/5.8.1/Network/Library/Perl.Embley-m6:/System +/Library/Perl/5.8.1/darwin-thread-multi-2level dswan$
The GD install has gone into /sw/lib/perl5/5.8.1/darwin-thread-multi-2level on both machines.

I know I can push paths into @INC with "use lib" but is there a way I can just get Perl to accept a new @INC permanently without major fiddling?

cheers,

Dan

Bukowski - aka Dan (dan@scot1and.net)
"Coffee for the mind, Pizza for the body, Sushi for the soul" -Userfriendly

In reply to modifying @INC other than use lib? by Bukowski

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (4)
    As of 2020-01-19 02:53 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Notices?