t-rex has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, I am trying to install YAML::XS package on of the machine where I use the command:
curl -L http://cpanmin.us | perl – App::cpanminus and then cpanm YAML::XS
But when I run my file it shows me error
Can't locate YAML/XS.pm in @INC (@INC contains: /usr/local/lib64/perl5 + /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5 +/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at urs.pl line 4. BEGIN failed--compilation aborted at urs.pl line 4.
I am aware of the fact that my @INC doesn’t have the path wher my modules are installed ( I am not a sudo here in prev machines I was so no such problem I faced) , please let me know how to solve this error. I can’t use :
use lib ‘’because of portability as my script is going to work on multiple machines.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Module not installed in @INC
by LanX (Saint) on Aug 12, 2016 at 12:21 UTC | |
Re: Module not installed in @INC
by marto (Cardinal) on Aug 12, 2016 at 10:45 UTC | |
Re: Module not installed in @INC
by hippo (Archbishop) on Aug 12, 2016 at 10:51 UTC | |
by t-rex (Scribe) on Aug 12, 2016 at 12:48 UTC | |
by Corion (Patriarch) on Aug 12, 2016 at 12:50 UTC | |
by LanX (Saint) on Aug 12, 2016 at 13:03 UTC |