Hi,

I take it that since you've got this far you've installed the developer tools, which I think was tricycle's problem.

I've been having related problems doing pretty much the same thing. In the end I installed the DBI and DBD::mysql packages manually. They seem to work fine. The problem I've been seeing with this and other CPAN-based installs is that newer modules apparently depend on perl 5.6.1 rather than the 5.6.0 that ships with OSX. I've compiled perl 5.6.1 and 5.7.2 but they fail a few of the tests run by make test (including one of the POSIX tests) so I'm a bit leery of actually installing them.

On a side note, the fink project is apparently working on providing the DBI and DBD modules; the relevant modules are in the current-unstable tree. Wait a while and the problem might go away :-)

Tim

Update: For completeness, I'll just add this pointer to a previous, more comprehensive thread on MacOSX and perl.

Update^2 (belated): Having installed perl 5.6.1 using the instructions codified here (which basically say: ignore my above concerns :P), I've found that the perl -MCPAN -e shell route works (almost) flawlessly. The only significant problem so far has been the DB_File module, which is one of the modules which originally failed make test anyway.

HTH, Tim


In reply to Re: Trouble installing modules under Mac OS X by tfrayner
in thread Trouble installing modules under Mac OS X by Anonymous Monk

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.