I am logging in via root access to my dedicated server.
Running:
cpan
cpan> install Mod::what
and it is putting the modules in the root directory:
/root/perl5/lib/perl5/Mod/what.pm
like that... (Mod::what is not real of course)...
Anyhow, it is not putting it where @INC has locations.
So how do I, server wide, put that location ('/root/perl5/lib/perl5/') into @INC so every script I have on every website loads it, OR
how do I change where CPAN is putting the modules and have it install them where @INC is looking, namely, in any of these directories where it says @INC includes:
/usr/local/lib64/perl5 -> /usr/local/share/perl5 -> /usr/lib64/perl5/vendor_perl -> /usr/share/perl5/vendor_perl -> /usr/lib64/perl5 /usr/share/perl5
Either way. I don't have a preference. This is a dedicated server behind a very strong firewall, so neither will hurt anything.
I would appreciate your pointed advice.
best regards,
-Rich
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.