Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I execute the cpan command, I got this error message.

Your configuration suggests "/root/.cpan" as your CPAN.pm working directory. I could not create this directory due to this error: mkdir /root/.cpan: Permission denied at /usr/share/perl/5.8/CPAN.pm line 553 Please make sure the directory exists and is writable.

  • Comment on what should I do before using the cpan command ?

Replies are listed 'Best First'.
Re: what should I do before using the cpan command ?
by Anonymous Monk on Aug 05, 2009 at 06:34 UTC
Re: what should I do before using the cpan command ?
by Bloodnok (Vicar) on Aug 05, 2009 at 13:00 UTC
    Inferring from the error message, you are attempting to update the system libraries as a user not having super-user privileges, so does this work for you ??
    sudo perl -MCPAN -e shell
    A user level that continues to overstate my experience :-))