1nickt has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I have a strange set of error messages when trying to use perlbrew to test some modules on a old perl.
[08:25][nick:~]$ perlbrew list * perl-5.6.0 perl-5.16.0 [08:25][nick:~]$ perl -v | head -2 This is perl, v5.6.0 built for darwin [08:25][nick:~]$ cpan Test::More Going to read '/Users/nick/.cpan/Metadata' ...
I didn't expect cpan to look there ... ? Wouldn't there be a .cpan/Metadata in each perl dist directory tree?
Installation proceeds, all tests pass for first dependency (Test::Simple) , then at the end:
... All tests successful. Files=118, Tests=1378, 9 wallclock secs ( 0.53 usr 0.39 sys + 5.34 +cusr 2.15 csys = 8.41 CPU) Result: PASS EXODIST/Test-Simple-1.001014.tar.gz make test -- OK Running make install !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/Library/Perl/5.12' Do not have write permissions on '/Library/Perl/5.12' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at -e line 1 make: *** [pure_site_install] Error 13 EXODIST/Test-Simple-1.001014.tar.gz make install -- NOT OK
I REALLY didn't expect perlbrew to try to copy a file to a dir with 5.12 in the name .... ?
Tried with cpanm since it came with perlbrew:
[08:26][nick:~]$ cpanm Test::More Not a CODE reference at /Users/nick/perl5/perlbrew/bin/cpanm line 507. BEGIN failed--compilation aborted at /Users/nick/perl5/perlbrew/bin/cp +anm line 507.
Is all this because 5.6.0 is just too old? Or do I have my perlbrew configured wrongly?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perlbrew and CPAN
by kcott (Archbishop) on Jul 12, 2015 at 17:07 UTC | |
by 1nickt (Canon) on Jul 12, 2015 at 17:42 UTC |