First off, are you using the system Perl or have you installed your own? You generally don't want to install things in the system Perl-- the system depends on the Perl that came with it being the way it expects it to be. I'm not up to Lion yet, Snow Leopard shipped with 2 or 3 versions, depending on whether you have a 32 or 64 bit machine: 5.8.9 (32 bit), 5.10.0 (32 bit) and 5.10.0 (64 bit). I'm still on an old 32 bit machine, and managed to install a lot of modules into the 5.10.0 version without breaking anything (I vaguely recall that the system depends more on the 5.8.9 build, but I could be wrong there), but did have some problems with compatibility with some modules not behaving, even though I had all the pre-reqs installed

Your best bet is to install your own version of Perl and add your modules to that. There used to be a lot of pages floating around with instructions as to the best way to do it, but now Perlbrew seems to be the most convenient. It lets you install multiple versions of Perl and switch easily between them. It also comes with cpanp, which works quite well

If you want to go ahead and add modules to your existing install, you might (or might not) have better luck running CPAN in shell mode-- I've pretty much always done it that way and it generally will prompt for pre-reqs as it goes. You can get there with sudo perl -MCPAN -e shell and then install away from there.


In reply to Re: Perl errors on Mac OSX Lion by bitingduck
in thread Perl errors on Mac OSX Lion by T-Fen

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.