in reply to Re^3: Can't use CPAN.pm once gpg installed
in thread Can't use CPAN.pm once gpg installed

Unfortunately, the suggestion didn't work. In ~/.cpan/CPAN/MyConfig.pm for v1.83 of CPAN.pm, I made the following change:

< 'make_install_make_command' => q[/usr/bin/make], --- > 'make_install_make_command' => [ q[sudo], q[/usr/bin/make] ],

These were the results observed while trying to install a pure Perl distribution from CPAN:

cpan> install File::Marker CPAN: Storable loaded ok Going to read /Users/jimk/.cpan/Metadata Database was generated on Sat, 28 Jan 2006 23:13:10 GMT CPAN: LWP::UserAgent loaded ok
(snip fetching messages)
Running install for module File::Marker Running make for D/DA/DAGOLDEN/File-Marker-0.10.tar.gz Warning: You are not allowed to write into directory "/Users/jimk/.cpa +n/sources/authors/id/D/DA/DAGOLDEN". I'll continue, but if you encounter problems, they may be due to insufficient permissions. Fetching with LWP: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/File-Marker-0.10.tar.gz LWP failed with code[500] message[Cannot write to '/Users/jimk/.cpan/s +ources/authors/id/D/DA/DAGOLDEN/File-Marker-0.10.tar.gz-1548': Permis +sion denied] Fetching with LWP: ftp://ftp.cpan.org/pub/CPAN/authors/id/D/DA/DAGOLDEN/File-Marker-0.1 +0.tar.gz LWP failed with code[500] message[Cannot write to '/Users/jimk/.cpan/s +ources/authors/id/D/DA/DAGOLDEN/File-Marker-0.10.tar.gz-1548': Permis +sion denied] Fetching with Net::FTP: ftp://ftp.cpan.org/pub/CPAN/authors/id/D/DA/DAGOLDEN/File-Marker-0.1 +0.tar.gz Cannot open Local file /Users/jimk/.cpan/sources/authors/id/D/DA/DAGOL +DEN/File-Marker-0.10.tar.gz: Permission denied at /usr/local/lib/perl5/5.8.7/CPAN.pm line 2219
(snip a lot of attempts to download the prerequisites, all of which failed)
Please check, if the URLs I found in your configuration file (http://www.cpan.org/, ftp://ftp.cpan.org/pub/CPAN/, ftp://mirror.cc.columbia.edu/pub/software/cpan/, ftp://ftp.duke.edu/pub/perl/, ftp://cpan.cse.msu.edu/) are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/id/D/DA/DAGOLDEN/File-Marker-0.10.tar.gz Giving up on '/Users/jimk/.cpan/sources/authors/id/D/DA/DAGOLDEN/File- +Marker-0.10.tar.gz' Note: Current database in memory was generated on Sat, 28 Jan 2006 23: +13:10 GMT

And so it wasn't installed. When I restored MyConfig.pm to the version that came with 1.83, then temporarily hid the ~/.gnupg directory, then called sudo cpan, the module installed properly, with only the following warning message:

WARNING: This key is not certified with a trusted signature! Primary key fingerprint: [a key which I think is the module author's] Signature for /Users/jimk/.cpan/sources/authors/id/D/DA/DAGOLDEN/CHECK +SUMS ok Fetching with LWP: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CHECKSUMS WARNING: This key is not certified with a trusted signature! Primary key fingerprint: [a key which I think is the module author's]
So I'm pretty much back where I started.

jimk

Replies are listed 'Best First'.
Re^5: Can't use CPAN.pm once gpg installed
by randyk (Parson) on Jan 31, 2006 at 03:38 UTC
    Running make for D/DA/DAGOLDEN/File-Marker-0.10.tar.gz. Warning: You are not allowed to write into directory "/Users/jimk/.cpan/sources/authors/id/D/DA/DAGOLDEN". I'll continue, but if you encounter problems, they may be due to insufficient permissions.
    I imagine this, and similar, warnings/errors are due to the fact that the relevant directories were originally created by root, and now you're running things as jimk. Try changing the ownership of everything under /Users/jimk/.cpan/ to jimk (and also adjust the group, if relevant).