Hi perlfan

I was using perlbrew's cpanm installer which was installed within the /home/grunt103 directory and it should have been using perl-5.20.3 also installed within the /home/grunt103 directory. I was not surprised by the message as grunt103 would not have had permission to write to the directories outside of it's domain.

I have pasted the full message below in case there is something in there I have missed.

! Can't write to /usr/local/share/perl5 and /usr/local/bin: Installing modules to /home/grunt103/perl5
! To turn off this warning, you have to do one of the following:
! - run me as a root or with --sudo option (to install to /usr/local/share/perl5 and /usr/local/bin)
! - Configure local::lib in your existing shell to set PERL_MM_OPT etc.
! - Install local::lib by running the following commands
!
! cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)

I have copied Moose.pm to /home/grunt103/perl5 and the script can find Moose so I might uninstall all the modules and use local::lib to install them all into /home/grunt103/perl5

Thanks for your feedback.


In reply to Re^2: @INC not providing path to modules by Anonymous Monk
in thread @INC not providing path to modules by OpenSpace

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.