On Sun, Sep 20, 2009 at 9:05 AM, James E Keenan <jk...@verizon.net> wrote: > I know that for several years Adam Kennedy has been attempting to provide > more rigorous, OS-specific definitions of 'home directory' in File::HomeDir. > As part of that effort, he had discussions with Chris Nandor re the best > definition of homedir on Mac OS. The result is that, for the time being, at > least, the official location for CPAN configuration data on Mac OS is indeed > ~/Library/Application\ Support/.cpan/CPAN/MyConfig.pm.
As always, the story is complicated. The problem is that "Application Support" has a space in the name and CPAN's default '.build" directory (where distributions are unpacked and tested before installation) is placed under that .cpan path. Many parts of the Perl toolchain and various distribution's test files have problems when cwd is a path with spaces. So on OSX, if your .cpan directory is under ~/Library/Application\ Support/.cpan then you should probably customize CPAN's 'build_dir' option to a path without spaces: cpan> o conf build_dir /your/preferred/path/here cpan> o conf commit A proposed fix was for CPAN to use a "File::HomeDir->my_dot_config" method that would place unix-style dot-configs under the home directory. This was added to File::HomeDir around 0.71_02, but was removed in 0.80 (without any mention in the Changes file). It was only recently that this removal was discovered, and so we're back to much the same situation as we started. History of the issue is here: http://rt.cpan.org/Public/Bug/Display.html?id=32841 -- David