Subject: | ~/.cpan/CPAN/MyConfig.pm is ignored (!) |
When trying to run the cpan script (interactively) as a non-root user, I
get the usual error message:
=====================8<------------------------
CPAN: File::HomeDir loaded ok
Your configuration suggests "/var/root/.cpan" as your
CPAN.pm working directory. I could not create this directory due
to this error: mkdir /var/root/.cpan: Permission denied at
/System/Library/Perl/5.8.6/CPAN.pm line 636
Please make sure the directory exists and is writable.
------------------->8===========================
Usually, I fix this by creating an almost-empty ~/.cpan/CPAN/MyConfig.pm
and run again throuh the config init process.
$ echo '$CPAN::Config={};' > ~/.cpan/CPAN/MyConfig.pm
...after which the cpan script usually works fine.
BUT
This doesn't work anymore!
My system is as follows:
$ perl -v
This is perl, v5.8.6 built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
$ uname -a
Darwin fnord 8.5.0 Darwin Kernel Version 8.5.0: Sun Jan 22 10:38:46 PST
2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power Macintosh powerpc
CPAN version:
$ perl -MCPAN -le'print $CPAN::VERSION'
1.8751
Thanks for your time! :)