Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Can't use CPAN.pm once gpg installed

by randyk (Parson)
on Jan 30, 2006 at 04:18 UTC ( [id://526376]=note: print w/replies, xml ) Need Help??


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

Recent versions of CPAN.pm support a make_install_make_command configuration setting, which is used to set the make command for running make install. Does setting this to "sudo make" work?
  • Comment on Re^3: Can't use CPAN.pm once gpg installed

Replies are listed 'Best First'.
Re^4: Can't use CPAN.pm once gpg installed
by jkeenan1 (Deacon) on Jan 30, 2006 at 13:50 UTC
    An interesting idea: In effect, delay the sudo call until you reach the one step in the process where it's absolutely necessary. I'll check this out tonight when I get back to that machine. Thanks.

    jimk

Re^4: Can't use CPAN.pm once gpg installed
by jkeenan1 (Deacon) on Jan 31, 2006 at 00:08 UTC
    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:

    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

      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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://526376]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-18 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found