Subject: | Doesn't honour PERL5LIB |
On some machines I get this error:
The specified perl '/usr/bin/perl' does not have backend
'CPAN::Reporter' installed, aborting
Which is not true:
nigel:~ nigel$ perl -MCPAN -eshell
cpan shell -- CPAN exploration and modules installation (v1.9600)
Enter 'h' for help.
cpan[1]> install CPAN::Reporter
CPAN: Storable loaded ok (v2.25)
Going to read '/Users/nigel/.cpan/Metadata'
Database was generated on Mon, 23 May 2011 13:34:44 GMT
CPAN: LWP::UserAgent loaded ok (v6.02)
CPAN: Time::HiRes loaded ok (v1.9722)
Fetching with LWP:
ftp://cpan.hexten.net/authors/01mailrc.txt.gz
CPAN: YAML::XS loaded ok (v0.35)
Going to read '/Users/nigel/.cpan/sources/authors/01mailrc.txt.gz'
CPAN: Compress::Zlib loaded ok (v2.033)
Going to read 46 yaml files from /Users/nigel/.cpan/build/
......................................................................DONE
Restored the state of 1 (in 0.3511 secs)
............................................................................DONE
Fetching with LWP:
ftp://cpan.hexten.net/modules/02packages.details.txt.gz
Going to read '/Users/nigel/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Wed, 25 May 2011 12:27:54 GMT
............................................................................DONE
Fetching with LWP:
ftp://cpan.hexten.net/modules/03modlist.data.gz
Going to read '/Users/nigel/.cpan/sources/modules/03modlist.data.gz'
............................................................................DONE
Going to write /Users/nigel/.cpan/Metadata
CPAN: Module::CoreList loaded ok (v2.49)
CPAN::Reporter is up to date (1.1902).
cpan[2]>
The problem appears to be that minismokebox doesn't honour PERL5LIB, I
have CPAN::Reporter installed in a non standard directory.
nigel:~ nigel$ echo $PERL5LIB
/Users/nigel/perl/Library/Perl/Updates/5.10.0:/Users/nigel/perl/Users/nigel/perl::/Users/nigel/perl/lib/perl5:/Users/nigel/perl/lib/perl5/site_perl:
nigel:~ nigel$