Greetings, wise ones!

I'm a non-privileged user on a development machine at work, and I'd like to install some modules for use in dev before asking the admin to install them system-wide. The machine is running Ubuntu 12.04.4 LTS (uname -a returns Linux dev-server 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux) and the system-installed Perl is v5.14.2. The local::lib module does not appear to be installed at the system level.

I launched cpan, allowed it to auto-configure itself, and chose local::lib for the install method. After auto-selecting its preferred mirrors, CPAN went ahead and bootstrapped itself, including building local::lib. However, at the end of the process, it prompts me with this:

local::lib is installed. You must now add the following environment va +riables to your shell configuration files (or registry, if you are on Windows) + and then restart your command line shell and CPAN before installing module +s: Would you like me to append that to /home/shawmo03/.bashrc now? [yes]

Regardless of whether I choose yes or no here, the next time I launch CPAN and try to install a module, it fails as such:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/usr/local/man/man3' mkdir /usr/local/man/man3: Permission denied at /usr/share/perl/5.14/E +xtUtils/Install.pm line 494 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!!

I've tried this a couple of times now, making sure to delete my ~/.cpan and ~/perl5 directories before configuring CPAN, but it steadfastly refuses to output the environment variables I need to set. Pray tell, O monks, what must I do to appease it?


In reply to Why won't local::lib tell me what to put in .bashrc? by DarkMorford

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.