Subject: | default lib dir should examine $Config{installstyle} |
$Config{installstyle} contains either 'lib' (when $Config{prefix} contains something like '/opt/perl/') or 'lib/perl5' (when $Config{prefix} contains something like '/usr/local/'). MM_Unix should utilize the installstyle for the default libstyle instead of hardcoding 'lib/perl5'. Patch is attached.
I ran across this problem while installing under my home dir (/home/jdl/perltest/). After I installed a module that used MakeMaker, the modules weren't found because the 'perl5' part of the module's install dir wasn't in @INC. After running the attached patch & re-installing the module, things work fine.
Thanks! :-)
*** MM_Unix.pm.orig Wed Nov 6 13:48:42 2002
--- MM_Unix.pm Thu Nov 7 08:34:23 2002
***************
*** 1930,1936 ****
my $version = $Config{version};
# default style
! my $libstyle = 'lib/perl5';
my $manstyle = '';
if( $self->{LIBSTYLE} ) {
--- 1930,1936 ----
my $version = $Config{version};
# default style
! my $libstyle = $Config{installstyle} || 'lib/perl5';
my $manstyle = '';
if( $self->{LIBSTYLE} ) {