Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

perlbrew installation can't find Cwd.pm

by wanna_code_perl (Friar)
on Jan 01, 2018 at 22:28 UTC ( [id://1206521]=perlquestion: print w/replies, xml ) Need Help??

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
    I have a fresh install of Ubuntu 16.04.1, and I get two different paths to Cwd.pm when I run locate Cwd.pm. I get the following paths,
    /usr/lib/x86_64-linux-gnu/perl/5.22.1/Cwd.pm /usr/lib/x86_64-linux-gnu/perl-base/Cwd.pm
    You seem to be missing this one,
    /usr/lib/x86_64-linux-gnu/perl/5.22.1/Cwd.pm
    which is provided by the libperl5.22 package. Is the libperl5.22 package installed on your system?
Re: perlbrew installation can't find Cwd.pm
by ikegami (Patriarch) on Jan 03, 2018 at 13:29 UTC
    $ perl -MCwd -le 'print cwd()'

    The following would be more useful:

    /usr/bin/perl -MCwd -le'print $INC{"Cwd.pm"};'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1206521]
Front-paged by stevieb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-25 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found