wanna_code_perl has asked for the wisdom of the Perl Monks concerning the following question:
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:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perlbrew installation can't find Cwd.pm
by kevbot (Vicar) on Jan 02, 2018 at 07:21 UTC | |
|
Re: perlbrew installation can't find Cwd.pm
by ikegami (Patriarch) on Jan 03, 2018 at 13:29 UTC |