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.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.