ok so I installed mac ports recently.

It then added this line into my .bash_profile

# MacPorts Installer addition on 2013-01-17_at_18:11:48: adding an app +ropriate PATH variable for use with MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH

And now when I try to run lets say my dancer app, it goes and says:

Can't locate YAML.pm in @INC (@INC contains: /Users/gideon/Documents/C +oding/TryPerlMain/TryPerlApp/lib /opt/local/lib/perl5/site_perl/5.12. +4/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.12.4 /o +pt/local/lib/perl5/vendor_perl/5.12.4/darwin-thread-multi-2level /opt +/local/lib/perl5/vendor_perl/5.12.4 /opt/local/lib/perl5/5.12.4/darwi +n-thread-multi-2level /opt/local/lib/perl5/5.12.4 /opt/local/lib/perl +5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/per +l5/site_perl/5.12.4/Dancer/ModuleLoader.pm line 31, <DATA> line 1003.

If I comment the line out everything sort of works. But now because of this mishap I probably installed double copies of some modules on my opt/localand on my regular modules directory. (I'm generally new to perl and osx)

Questions:

  1. Can I live without local lib thing? It's my personal computer and I just want the regular installations, I'm happy with sudo cpan
  2. Will mac ports NOT work with that line commented?

In reply to I installed mac ports and now all my cpan dependencies cannot be found by gideondsouza

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.