Bill,
This is kind of a wild guess, but perhaps your make install is using
sudo? Recent versions of sudo are more restrictive in which envvars
get propagated. One difference between your CPAN config and mine is
the following:
'make_install_make_command' => q[/usr/bin/make],
Chris
On Apr 9, 2007, at 11:27 AM, Bill Moseley wrote:
This may be a CPAN or MakeMaker question -- please point me to a
different list if so.
I just when through the exercise of installing Catalyst on a clean
Debian Stable machine into a local Perl library. (Testing what
non-root user would need to do). I first updated ExtUtils::MakeMaker
to the current version.
The only problem was Template Toolkit installation (which has the .xs
stash) tried to get installed here:
ERROR: Can't create '/usr/local/lib/perl/5.8.4'
Do not have write permissions on '/usr/local/lib/perl/5.8.4'
My setup is this in .bashrc:
export PATH=$LOCAL_LIB/bin:$LOCAL_LIB/script:$PATH
perlversion=`perl -v | grep 'built for' | awk '{print $4}' |
sed -e 's/v//;'`
PERL5LIB=$LOCAL_LIB/share/perl/$perlversion:$PERL5LIB
PERL5LIB=$LOCAL_LIB/lib/perl/$perlversion:$PERL5LIB
PERL5LIB=$LOCAL_LIB/lib:$PERL5LIB
PERL5LIB=$LOCAL_LIB/lib/perl5:$PERL5LIB
export PERL5LIB
And then customize .cpan/CPAN/MyConfig.pm with:
'make_install_arg' => qq[SITEPREFIX=$ENV{LOCAL_LIB}],
'makepl_arg' => qq[INSTALLDIRS=site install_base=$ENV{LOCAL_LIB}],
So, does this need to be resolved with TT's Makefile.PL? Or would I
need an additional config setting in MyConfig.pm? Or something else?
$CPAN::Config = {
'auto_commit' => q[0],
'build_cache' => q[100],
'build_dir' => q[/home/moseley/.cpan/build],
'cache_metadata' => q[1],
'commandnumber_in_prompt' => q[1],
'cpan_home' => q[/home/moseley/.cpan],
'ftp_passive' => q[1],
'ftp_proxy' => q[],
'http_proxy' => q[],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/home/moseley/.cpan/sources],
'make_arg' => q[],
'make_install_make_command' => q[],
'mbuild_arg' => q[],
'mbuild_install_arg' => q[],
'mbuild_install_build_command' => q[./Build],
'mbuildpl_arg' => q[],
'no_proxy' => q[],
'prerequisites_policy' => q[ask],
'scan_cache' => q[atstart],
'term_ornaments' => q[1],
'urllist' => [q[http://www.perl.com/CPAN/]],
'use_sqlite' => q[0],
'make_install_arg' => qq[SITEPREFIX=$ENV{LOCAL_LIB}],
'makepl_arg' => qq[INSTALLDIRS=site install_base=$ENV{LOCAL_LIB}],
};
1;
__END__
--
Bill Moseley
[EMAIL PROTECTED]
--
Chris Dolan, Software Developer, Clotho Advanced Media Inc.
608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703
vCard: http://www.chrisdolan.net/ChrisDolan.vcf
Clotho Advanced Media, Inc. - Creators of MediaLandscape Software
(http://www.media-landscape.com/) and partners in the revolutionary
Croquet project (http://www.opencroquet.org/)