Hello blackrussian,

I have been developping Perl projects on that very same platform you're using, but never encountered a problem such as yours. First and foremost, use the CPAN module as marto suggested. Next, remember that many of the tests performed by DBD::mysql need to be able to connect to the mysql server. You should have seen something like this when running perl Makefile.PL:

I will use the following settings for compiling and testing: cflags (mysql_config) = -I/usr/local/mysql/include -Os -arch +ppc -fno-common embedded (mysql_config) = libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient +-lz -lm mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (guessed ) = 0 testdb (default ) = test testhost (default ) = testpassword (default ) = testsocket (default ) = testuser (default ) = To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'.

You can correct these settings either by adding arguments to the command, as in perl Makefile.PL --testuser=foo --testpassword=bar or by using the CPAN module configuration options: o conf makepl_arg "--testuser=foo --testpassword=bar".

Try again with that first, knowing that you shouldn't have to update your perl version at all (I didn't need to), but that doing it could be a solution if all else fails.

Hope this helps.


In reply to Re: Installing DBD::MySQL on Mac OS X - Problems by Fang
in thread Installing DBD::MySQL on Mac OS X - Problems by blackrussian

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.