Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 7956
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: schwern [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.0499
Fixed in: (no value)



Subject: config file not created if config and cache directories differ
I'm installing CPANPLUS on a clean iBook. CPANPLUS has never been installed on this machine before. I chose option 2 for the location of the config file (~/.cpanplus/config) but when asked where the cache should be located I said /var/local/cpanplus. As a result ~/.cpanplus was never created. It seems to assume that your config and cache directories will be in the same place. Here's some relevant output (note that /var is a symlink to /private/var on OS X) --------------------------- If you are unsure what to answer here, just hit ENTER and CPANPLUS will try to put your Configuration file in the default location. 1) /Library/Perl/5.8.1/CPANPLUS/Config.pm 2) /Users/schwern/.cpanplus/config 3) Somewhere else Location of the Configuration file [1]: 2 OK, I will save your Configure file to: /Users/schwern/.cpanplus/config ...later... The CPAN++ module needs a directory of its own to cache important index files and maybe keep a temporary mirror of CPAN files. This may be a site-wide directory or a personal directory. First of all, I'd like to create this directory. Where? [/Users/schwern/.cpanplus]: /var/local/cpanplus Your CPAN++ build and cache directory has been set to: /private/var/local/cpanplus ...later... Your current hosts are: cpan.pair.com archive.progeny.com ftp.cpan.org Couldn't write to /Users/schwern/.cpanplus/config: No such file or directory at /usr/local/src/CPAN/CPANPLUS-0.0499/lib/CPANPLUS/Configure.pm line 397 Can't locate /Users/schwern/.cpanplus/config in @INC (@INC contains: /usr/local/src/CPAN/CPANPLUS-0.0499/inc /usr/local/src/CPAN/CPANPLUS-0.0499/lib t/lib /sw/lib/perl5/5.8.1/darwin-thread-multi-2level /sw/lib/perl5/5.8.1 /sw/lib/perl5 /sw/lib/perl5/darwin /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at /usr/local/src/CPAN/CPANPLUS-0.0499/lib/CPANPLUS/Configure.pm line 403. [/usr/local/src/CPAN/CPANPLUS-0.0499] ls -ld /Users/schwern/ drwxr-xr-x 46 schwern schwern 1.5k Oct 11 13:48 /Users/schwern/ [/usr/local/src/CPAN/CPANPLUS-0.0499] ls -ld /Users/schwern/.cpanplus /sw/bin/ls: /Users/schwern/.cpanplus: No such file or directory [/usr/local/src/CPAN/CPANPLUS-0.0499] whoami schwern
[MSCHWERN - Mon Oct 11 13:50:07 2004]: Show quoted text
> I'm installing CPANPLUS on a clean iBook. CPANPLUS has never been > installed on this machine before. I chose option 2 for the > location of the config file (~/.cpanplus/config) but when asked > where the cache should be located I said /var/local/cpanplus. > > As a result ~/.cpanplus was never created. It seems to assume that > your config and cache directories will be in the same place.
Thanks for the report -- This is fixed in the development branch.