Bukowski has asked for the wisdom of the Perl Monks concerning the following question:
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)
andashtaroth:~ 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$
The GD install has gone into /sw/lib/perl5/5.8.1/darwin-thread-multi-2level on both machines.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$
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
"Coffee for the mind, Pizza for the body, Sushi for the soul" -Userfriendly
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: modifying @INC other than use lib?
by bsdz (Friar) on Apr 18, 2005 at 11:57 UTC | |
by merlyn (Sage) on Apr 18, 2005 at 12:46 UTC | |
by Bukowski (Deacon) on Apr 18, 2005 at 13:39 UTC | |
by jacques (Priest) on Apr 18, 2005 at 18:14 UTC | |
by bsdz (Friar) on Apr 19, 2005 at 08:54 UTC | |
by merlyn (Sage) on Apr 19, 2005 at 13:56 UTC | |
by bsdz (Friar) on Apr 19, 2005 at 15:08 UTC | |
| |
by Bukowski (Deacon) on Apr 18, 2005 at 12:43 UTC | |
Re: modifying @INC other than use lib?
by Fletch (Bishop) on Apr 18, 2005 at 12:19 UTC | |
Re: modifying @INC other than use lib?
by Taulmarill (Deacon) on Apr 18, 2005 at 12:08 UTC | |
Re: modifying @INC other than use lib?
by polettix (Vicar) on Apr 18, 2005 at 17:51 UTC | |
by eric256 (Parson) on Apr 18, 2005 at 18:06 UTC |
Back to
Seekers of Perl Wisdom