I've just gotten OSX, and so I'm still learning my way around it.. its my first real in-depth experience with any *nix machine. I want to install a perl module (Net::Telnet), and I've got it downloaded, and then I proceed to do the 'perl Makefile.PL' step, but, I get an error message:

Error: Unable to locate installed Perl libraries or Perl source code.

It is recommended that you install perl in a standard location before building extensions. Some precompiled versions of perl do not contain these header files, so you cannot build extensions. In such a case, please build and install your perl from a fresh perl distribution. It usually solves this kind of problem.

(You get this message, because MakeMaker could not find "/System/Library/Perl/darwin/CORE/perl.h")
-----
So, my question is this: How can I get perl.h and install it to get rid of the error msg, or how/where do I get a new distribution of perl for OSX? I've gone to apple's website, and also cpan, but they say that OSX ships with the latest version of perl. Apparently that isn't the case here?

Advice/encouragement is welcome =)

In reply to Perl and OSX by TrinityInfinity

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.