in reply to Installing DBD::MySQL on Mac OS X - Problems

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.

Replies are listed 'Best First'.
Re^2: Installing DBD::MySQL on Mac OS X - Problems
by blackrussian (Initiate) on Oct 19, 2005 at 14:24 UTC
    Hi there,
    yes, I have already sorted out all my Makefile commands and have used a valid user account for testing etc.
    I really don't want to have to start mucking about with my perl installation, but I suppose I'll try it if nothing else works...

    Thanks, BR