While the idea of using sudo only at install time is nice, there are two
problems:
1. Some modules require extra privileges at test time
2. Far more impact is that sudo requires that you enter your password each
time you invoke it.  Therefore you will have to enter your password once
for each module you install. On any given module you may have 3 or 4
prerequisites; if you update your modules to current once a quarter, you
will have dozens to install.  Given the way that CPAN.pm operates you
can't just keep going and add each blib to your @INC and only do one sudo
session to run all the individual make installs.


> # from Shawn H Corey
> # on Sunday 10 January 2010 08:11:
>
>>$ sudo cpan
>
> This exposes your system to any bugs in the test suite (an accidental
> `rm -rf /` has happened before) with root privileges.  With a modern
> CPAN client, you can set it to use sudo only at install time with the
> make_install_make_command and mbuild_install_build_command knobs.
>
>   http://learnperl.scratchcomputing.com/tutorials/configuration/
>
> --Eric
> --
> perl -e 'srand; print join(" ",sort({rand() < 0.5}
>   qw(sometimes it is important to be consistent)));'
> ---------------------------------------------------
>     http://scratchcomputing.com
> ---------------------------------------------------
>


Reply via email to