Alessandro has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I am on os x El capitan and have perlbrew installed. However, when I install a perl module I can't get it working, because it seems perl is not looking at the right place.
Can't locate WWW/Mechanize.pm in @INC (you may need to install the WWW::Mechanize module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2/darwin-thread-multi-2level /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .)also
which perl returns /opt/local/bin/perl5my understanding is that it should return the path to perlbrew install and not the system perl.
and perl -v returns This is perl 5, version 22, subversion 2 (v5.22.2) built for darwin-thread-multi-2level and I indeed used perlbrew to install and switch to perl 5.22.2 but it seems somehow, the "switch" was only partial. What am I missing here?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: @INC not set for perlbrew
by FryingFinn (Beadle) on Jul 25, 2016 at 18:53 UTC | |
by Alessandro (Acolyte) on Jul 25, 2016 at 20:59 UTC | |
by stevieb (Canon) on Jul 25, 2016 at 21:04 UTC | |
|
Re: @INC not set for perlbrew
by sn1987a (Curate) on Jul 26, 2016 at 12:10 UTC | |
|
Re: @INC not set for perlbrew
by kcott (Archbishop) on Jul 29, 2016 at 15:41 UTC | |
|
Re: @INC not set for perlbrew
by Anonymous Monk on Jul 25, 2016 at 22:32 UTC |