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:
~$ wget -O - https://install.perlbrew.pl | bash --2018-01-01 22:07:57-- https://install.perlbrew.pl/ Resolving install.perlbrew.pl (install.perlbrew.pl)... 64.62.231.202 Connecting to install.perlbrew.pl (install.perlbrew.pl)|64.62.231.202| +:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://raw.githubusercontent.com/gugod/App-perlbrew/master/ +perlbrew-install [following] --2018-01-01 22:07:57-- https://raw.githubusercontent.com/gugod/App-p +erlbrew/master/perlbrew-install Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151 +.101.112.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|15 +1.101.112.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1410 (1.4K) [text/plain] Saving to: ‘STDOUT’ - 100%[============================>] 1.38K -- +.-KB/s in 0s 2018-01-01 22:07:57 (221 MB/s) - written to stdout [1410/1410] ## 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.
|
|---|
| 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 |