Hello Monks!

I've never had this problem before:

$ wget -O - https://install.perlbrew.pl | bash [...snip normal wget output...] ## Download the latest perlbrew ## Installing perlbrew Using Perl </usr/bin/perl> Can't locate Cwd.pm in @INC (you may need to install the Cwd module) ( +@INC contains: /usr/local/share/perl/5.22.1/x86_64-linux-gnu-thread-m +ulti /usr/local/share/perl/5.22.1 /usr/share/perl5 /usr/lib/x86_64-li +nux-gnu/perl5/5.22 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/per +l/5.22) at perlbrew.ytTuXk line 7. BEGIN failed--compilation aborted at perlbrew.ytTuXk line 9.

Seems @INC is a little messed up, here. Cwd.pm exists, and works fine when I use it manually with the system Perl (5.22, Ubuntu 16.04 LTS) in /usr/bin/perl:

$ locate Cwd.pm /usr/lib/x86_64-linux-gnu/perl-base/Cwd.pm $ perl -MCwd -le 'print cwd()' /home/wcp $ uname -a Linux localhost 4.9.50-x86_64-linode86 #1 SMP Thu Sep 14 19:28:20 UTC +2017 x86_64 x86_64 x86_64 GNU/Linux

Any ideas on what might have broken, here?


Full output:


In reply to perlbrew installation can't find Cwd.pm by wanna_code_perl

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.