In <9511031846.ZM2036@oak.reading.sgi.com>
On Fri, 3 Nov 1995 18:46:48 +0000
David Greaves <davidg@oak.reading.sgi.com> writes:
>> What does
>>
>> perl -e 'print join("\n",@INC),"\n"'
>>
>> print ?
>/usr/local/lib/perl5
>/usr/gnu/lib/perl5/IP22-irix
>/usr/gnu/lib/perl5
>.
>
>Hang on a mo!
>/usr/local!
>thats not right
>
>My basic problem was that when I rebuilt perl to patchlevel m I installed it in
>/usr/gnu to be more private. (Til it was tested). The general /usr/local/lib
>stuff was unfortunatley being searched first. (I'd put this in the perl5m path
>so any local extras would be useable - I thought I'd set the search order to
>/usr/local last, whoops!)
>
Someone else has re-discovered that 'sitelib' is searched first.
I think this is a mistake. The place(s) that *this* version installs
things should be what is looked for first, then use sitelib for fallback.
If you need to override behaviour of lastest release sitelib
is not the way to do it - rather the .pm should "use lib ...".
Classic example - I build 5.001n and install it in non-standard
place for testing - giving standard place i.e. /usr/lib/perl5 as sitelib.
Now perl5.001n finds *old* MakeMaker, Socket etc. by default which
makes testing it a pain.
On Fri, 3 Nov 1995 18:46:48 +0000
David Greaves <davidg@oak.reading.sgi.com> writes:
>> What does
>>
>> perl -e 'print join("\n",@INC),"\n"'
>>
>> print ?
>/usr/local/lib/perl5
>/usr/gnu/lib/perl5/IP22-irix
>/usr/gnu/lib/perl5
>.
>
>Hang on a mo!
>/usr/local!
>thats not right
>
>My basic problem was that when I rebuilt perl to patchlevel m I installed it in
>/usr/gnu to be more private. (Til it was tested). The general /usr/local/lib
>stuff was unfortunatley being searched first. (I'd put this in the perl5m path
>so any local extras would be useable - I thought I'd set the search order to
>/usr/local last, whoops!)
>
Someone else has re-discovered that 'sitelib' is searched first.
I think this is a mistake. The place(s) that *this* version installs
things should be what is looked for first, then use sitelib for fallback.
If you need to override behaviour of lastest release sitelib
is not the way to do it - rather the .pm should "use lib ...".
Classic example - I build 5.001n and install it in non-standard
place for testing - giving standard place i.e. /usr/lib/perl5 as sitelib.
Now perl5.001n finds *old* MakeMaker, Socket etc. by default which
makes testing it a pain.