Hello monks, I use ubuntu 14.04 in my machine. I installed perlbrew exactly how perlbrew.pl does:

\wget -O - http://install.perlbrew.pl | bash

Then I installed perl5.20.0 using brew:

perlbrew install perl-5.20.0

Switched to it:

perlbrew switch perl-5.20.0

I installed cpan-minus:

perlbrew install-cpanm

I installed WWW::Mechanize through cpanm:

cpanm WWW::Mechanize

Last lines of installation:

Configuring Try-Tiny-0.22 ... OK Building and testing Try-Tiny-0.22 ... OK Successfully installed Try-Tiny-0.22 ! Installing the dependencies failed: Module 'Try::Tiny' is not instal +led ! Bailing out the installation for Test-Fatal-0.013. ! Installing the dependencies failed: Module 'HTML::Tagset' is not ins +talled, Module 'HTML::Entities' is not installed, Module 'HTML::Parse +r' is not installed, Module 'Test::Fatal' is not installed ! Bailing out the installation for HTML-Tree-5.03. ! Installing the dependencies failed: Module 'LWP' is not installed, M +odule 'HTML::TreeBuilder' is not installed, Module 'URI' is not insta +lled, Module 'HTML::HeadParser' is not installed, Module 'HTML::Parse +r' is not installed, Module 'HTML::Form' is not installed, Module 'HT +TP::Request' is not installed, Module 'HTTP::Server::Simple::CGI' is +not installed, Module 'HTTP::Status' is not installed, Module 'HTTP:: +Daemon' is not installed, Module 'LWP::UserAgent' is not installed, M +odule 'Test::Warn' is not installed, Module 'HTTP::Server::Simple' is + not installed, Module 'URI::file' is not installed, Module 'URI::URL +' is not installed, Module 'HTML::TokeParser' is not installed ! Bailing out the installation for WWW-Mechanize-1.73. 13 distributions installed

Then using a code requiring WWW::Mechanize:

Can't locate WWW/Mechanize.pm in @INC (you may need to install the WWW +::Mechanize module) (@INC contains: /home/brazuca/perl5/perlbrew/perl +s/perl-5.20.0/lib/site_perl/5.20.0/x86_64-linux /home/brazuca/perl5/p +erlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0 /home/brazuca/perl5/pe +rlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-linux /home/brazuca/perl5/ +perlbrew/perls/perl-5.20.0/lib/5.20.0 .) at teste.pl line 5. BEGIN failed--compilation aborted at teste.pl line 5.
I can't find where the problem is, so I ask the light for yours, thanks!

In reply to perlbrew +cpanm = Can't locate in @INC by brazuca

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.