I've found on my system (
RedHat Enterprise AS3) that when using
perl Makefile.PL LIB=/my/local/lib
, some modules install to
/my/local/lib/i386-linux-thread-multi
, ie
$CPANBASE/$SITEARCH
.
setlib.cfg
does not add this by default to
@localPerlLibPath
, instead it adds
$CPANBASE/$VER/$SITEARCH
. So I think this diff would be helpful:
--- setlib.cfg~ 2006-07-12 14:44:15.000000000 +0100
+++ setlib.cfg 2006-07-21 16:10:25.000000000 +0100
@@ -39,7 +39,7 @@
require Config;
my $VER = $Config::Config{version};
my $SITEARCH = $Config::Config{archname};
- push @localPerlLibPath, ( "$CPANBASE/arch/", "$CPANBASE/$VER/$SITEARCH/", "$CPANBASE/$VER/", "$CPANBASE/" );
+ push @localPerlLibPath, ( "$CPANBASE/arch/", "$CPANBASE/$VER/$SITEARCH/", "$CPANBASE/$VER/", "$CPANBASE/$SITEARCH/", "$CPANBASE/" );
}
# Prepend to @INC, the Perl search path for modules
Are the trailing slashes at the end of each (and $CPANBASE) really needed? The standard
@INC
doesn't need them, and as things stand you get a double slash between
$CPANBASE
and the rest of each path.
Done
CC
4.1.0 released
KJL