Are you sure that the perl you are using to run the CPAN shell is the same perl you are checking @INC with?
I would expect the CPAN module to install modules based on the paths specified when perl was built, which suggests to me that you may have two separate builds of perl, one at /usr/bin/perl and another at /usr/local/bin/perl. I'm guessing that your @INC problems involve a script that starts with #!/usr/local/bin/perl.
Use `which perl` to see what perl you're running from the command line, and compare the values for @INC from perl -V:
/usr/bin/perl -V
/usr/local/bin/perl -V
If they show different paths, you'll probably want to pick one of the perl installions, replace the other binary with a link, and remove the set of libraries which is no longer needed. (To go along with the options in perl's Configure script, I'd suggest keeping /usr/local/bin/perl and making /usr/bin/perl a link.)
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.