Good day, dear Monks, I have been trying to install Parse::RecDescent in a local::lib to isolate the dependencies of my application from the system. (Actually, it's a prereq for Mail::IMAPClient, which is the one I really need.) I have been installing modules with this:
my $dir = "/usr/local/MailControl"; $ENV{PERL5LIB} = "$dir/lib/perl5"; $ENV{PERL_LOCAL_LIB_ROOT} = $dir; $ENV{PERL_MB_OPT} = qq(--install_base "$dir"); $ENV{PERL_MM_OPT} = qq(INSTALL_BASE=$dir); system "cpanm --no-man-pages Mail::IMAPClient";
I'm installing with a userid with write permissions to the target directory, but not as root. This is failing, and the message in the build log says:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/usr/local/share/man/man3' Do not have write permissions on '/usr/local/share/man/man3' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at /usr/share/perl5/Module/Build/Base.pm line 2988
Can anyone point me to a reason that the install is trying to install the documentation when I supplied --no-man-pages, and why if it's going to do that it is ignoring my installation directory? Since this is bundling a procedure that will be executed by puppet, I don't want to have to stop and modify something that is downloaded. I want it to run as scripted every time. Any insights would be appreciated.

In reply to Problems installing Parse::RecDescent in a local::lib by Silvermouse

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.