Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cbrandtbuffalo (4462)

cbrandtbuffalo
  (email not shown publicly)

Perl programmer at the University at Buffalo.
Friday July 28, 2006
09:22 AM

New CPAN option for sudo

[ #30459 ]
So maybe I'm a little slow to find this out, but the cpan shell provided by the CPAN.pm module has a cool new option. In the past, I've always done 'sudo cpan' on my box to install things on the system, but then all my .cpan stuff is owned by root. Now, if you run this command in your cpan shell:

o conf make_install_make_command 'sudo make'

the cpan shell will run everything as you, then run 'sudo make install' for the last step, just like you would if installing by hand! Very cool.

If you've been doing the 'sudo cpan' thing, you'll need to clean up your .cpan directory because it's owned by root. You can probably chown it, but I chose to just delete it all.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.