On Sun, Jan 16, 2011 at 20:59, John Delacour <j...@bd8.com> wrote:
> At 17:29 -0500 16/01/2011, Levan, Jerry wrote:
>> Is doing a:
>>    sudo perl -MCPAN -e shell
>> The standard way of preparing to install modules?
>> Seems like root might only be needed for actual installation...
> With sudo you are superuser; that's quite good enough.
> I never do it that way.  I just type sudo cpan, as I said.
> In fact I don't usually do that because I work mainly with my own
> installation of perl, so I do
> $ cd /usr/local/bin; sudo ./cpan
> in order to get the modules installed where I want them and not in the Apple
> installation.  I wouldn't trust Apple to overwrite their own installation.
>  I trust them to take my money and not much else.
> JD

A more modern way of doing this is to install your own version of Perl
5 with [perlbrew][1] and then use [cpanm][2] to manage your CPAN
installs.  You may also find [this Stack Overflow question][3] useful.

By using a non-system version of Perl 5, you will not be susceptible
to problems such as the 2009-001 Apple security update [breaking][4]
Perl 5.

 [1]: http://search.cpan.org/dist/App-perlbrew/lib/App/perlbrew.pm
 [2]: http://search.cpan.org/dist/App-cpanminus/lib/App/cpanminus.pm
 [4]: http://www.theregister.co.uk/2009/02/16/apple_update_perl_breakage/

Chas. Owens
The most important skill a programmer can have is the ability to read.

Reply via email to