Note: Working in OS X Darwin (10.4.1)

I'm running a .pl script that uses a .pm file that uses LWP::Simple. It's worked before and today I tried to execute it and am running into this problem.

When I run perl -e "use LWP::Simple;" it appears that the package (LWP::Simple) exists. I manually re-added the path to PERL5LIB. I even re-installed / updated it using MCPAN.

Yet, when I run my script I get

Can't locate LWP/Simple.pm in @INC (@INC contains: /Users/brucedb/edev +/project_psdev/dev/bruce/tools/bin/../lib /opt/local/lib/perl5/site_p +erl/5.8.9/LWP/ /System/Library/Perl/5.8.6/darwin-thread-multi-2level +/System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2l +evel /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/da +rwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library +/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /S +ystem/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at /Users/bruc +edb/edev/project_psdev/dev/bruce/tools/bin/../lib/utils.pm line 9. BEGIN failed--compilation aborted at /Users/brucedb/edev/project_psdev +/dev/bruce/tools/bin/../lib/utils.pm line 9. Compilation failed in require at ./algo.pl line 20. BEGIN failed--compilation aborted at ./algo.pl line 20.

Notes about the above error message:

1. line 20 in algo.pl is "use utils.pm;"

2. line 9 in utils.pm is "use LWP::Simple;"

3. /lib /opt/local/lib/perl5/site_perl/5.8.9/LWP/ is the directory containing Simple.

Any ideas?

Thanks,


In reply to Can't locate LWP/Simple.pm in @INC by BruceDB

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



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