Hello monks, I use ubuntu 14.04 in my machine. I installed perlbrew exactly how perlbrew.pl does:
\wget -O - http://install.perlbrew.pl | bashThen I installed perl5.20.0 using brew:
perlbrew install perl-5.20.0Switched to it:
perlbrew switch perl-5.20.0I installed cpan-minus:
perlbrew install-cpanmI installed WWW::Mechanize through cpanm:
cpanm WWW::MechanizeLast 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:
I can't find where the problem is, so I ask the light for yours, thanks!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.
In reply to perlbrew +cpanm = Can't locate in @INC by brazuca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |