title: Can't locate LWP/Simple.pm in @INC
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/65865/whats-the-easiest-way-to-install-a-missing-perl-module">What&#39;s the easiest way to install a missing Perl module?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm attempting to run <a href="http://code.google.com/p/scxml2dot/source/browse/trunk/scxml2dot.pl" rel="noreferrer">a Perl script</a> to convert SCXML to Graphviz DOT. I modified the first line of the script to:</p>
  
  <pre><code>#!/usr/bin/env perl
  </code></pre>
  
  <p>and <code>chmod +x</code> the file. When I run it via <code>./scmxl2dot.pl</code> I see the following error output:</p>
  
  <blockquote>
    <p>Can't locate LWP/Simple.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level /opt/local/lib/perl5/site_perl/5.12.3 /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level /opt/local/lib/perl5/vendor_perl/5.12.3 /opt/local/lib/perl5/5.12.3/darwin-multi-2level /opt/local/lib/perl5/5.12.3 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at ./scmxml2dot.pl line 14.<br>
    BEGIN failed--compilation aborted at ./scmxml2dot.pl line 14.</p>
  </blockquote>
  
  <p>Line 14 of the file is <code>use LWP::Simple;</code></p>
  
  <p>How do I:</p>
  
  <ol>
  <li>Find out if I have this thing (module?) installed, and/or</li>
  <li>Get LWP::Simple and make it available to the script?</li>
  </ol>
  
  <p><em>This is running under OS X 10.7.3 and Perl 5.12.3 (as seen in the error).</em></p>