Wiki‎ > ‎Useful links‎ > ‎Troubleshooting‎ > ‎

Tiger DBD Mysql


Perhaps this isn't an issue anymore?

I downloaded the tarball from CPAN and used the standard Perl Makefile, make, sudo make install commands and
it seemed to install without a hitch.

(this was on Intel)

So before you despair, try that first.

The Problem

Many people report having trouble getting DBD::mysql to install on OS X 10.4. We have had real trouble with this on a couple of machines. Here's what I did last time that eventually worked.

  • Installed the newest updated developer tools, XCode 2.4. You can download it from Apple if you have a free ADC account.
  • Installed the latest MySQL binary from MySQL's download page
  • Installed Fink and DarwinPorts
  • Installed DBI using Fink: fink install dbi-pm586
  • Tried to install DBD::mysql using cpan, no luck

cd ~/.cpan/build/DBD-mysql-3.0006/
sudo perl Makefile.PL --cflags="-I/usr/local/mysql/include -Os -fno-common" --libs="-L/usr/local/mysql/lib -lmysqlclient -lz -lm"
make install

No luck.

  • Tried a bunch of other stuff with darwinports and fink, but neither one seems to really have DBD mysql
  • Tried to install DBD::mysql using cpan, no luck

cd ~/.cpan/build/DBD-mysql-3.0006/
sudo make install

And that worked. Now, I also did a lot of other unsuccessful things in the meantime, so if some of those affected the outcome, I'm not sure. I've looked over:

and other sites, seems there is no really clear answer floating around anywhere.

Smart people, help us here and give some better advice on what to do to get DBD::mysql installed.