I keep losing when I try to use the CPAN module install in my home directory. The failure occurs when installing the documentation. In my ~/.cpan/CPAN/MyConfig.pl file I have
'makepl_arg' => q[LIB=/home/dthroop/lib/perl INSTALLMAN1DIR=/home/dthr +oop/lib/perl/man/man1 INSTALLMAN3DIR=/home/dthroop/lib/perl/man/man3 +INSTALLSCRIPT=/home/dthroop/lib/perl/bin INSTALLBIN=/home/dthroop/lib +/perl/bin], 'mbuildpl_arg' => q[--lib=/home/dthroop/lib/perl --installman1dir=/h +ome/dthroop/lib/perl/man/man1 --installman3dir=/home/dthroop/lib/perl +/man/man3 --installscript=/home/dthroop/lib/perl/bin --installbin=/ho +me/dthroop/lib/perl/bin],
But when I try and install, e.g. Config::Simple;
% perl -MCPAN -e shell cpan[1]> install Config::Simple ... Appending installation info to /home/dthroop/lib/perl/i386-linux-threa +d-multi/perllocal.pod !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/usr/local/share/man/man3' Do not have write permissions on '/usr/local/share/man/man3'
I thought I'd told CPAN to install it in my home directory. Clearly, I need to put some other parameter in my config file. But what, where?

In reply to CPAN modules losing in home directory by throop

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.