develooper Front page | perl.qa | Postings from October 2007

Re: Running CPAN as a regular user, installing as root

From:
Matisse Enzer
Date:
October 18, 2007 20:10
Subject:
Re: Running CPAN as a regular user, installing as root

On Oct 18, 2007, at 7:53 PM, A. Pagaltzis wrote:

> * Matisse Enzer <matisse@matisse.net> [2007-10-18 19:35]:
>> From your shell prompt:
>>
>>   sudo cpan
>
> No, if you used to use CPAN.pm as root, then instead say this:
>
>     sudo tar cf - .cpan -C ~root | tar xvf - -C ~
>     sudo rm -r ~root/.cpan

You are right - one should properly copy the existing configuration.

In my case,  on OS X, the location of 'MyConfig.pm' is
    /Users/matisse/Library/Application Support/.cpan/CPAN/MyConfig.pm

so I did:

    cp /System/Library/Perl/5.8.6/CPAN/Config.pm \
      "/Users/matisse/Library/Application Support/.cpan/CPAN/ 
MyConfig.pm"

Nothing is as simple as it seems. Or almost nothing anyway.

-------------------------------------------------------
Matisse Enzer <matisse@matisse.net>
http://www.matisse.net/  - http://www.eigenstate.net/






Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About