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


In reply to Re^4: Can't use CPAN.pm once gpg installed by jkeenan1
in thread Can't use CPAN.pm once gpg installed by jkeenan1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.