- Install Fink.
- In a Terminal window, type fink list dbi or fink list dbd and you will see a list of available packages.
- Now type fink install dbi-pm586 (that's the default DBI package for Perl 5.8.6)
- Here's the tricky part. Fink installs the modules in /sw -> lib -> perl5 -> 5.8.6 -> darwin-thread-multi-2level, which is not in your normal @INC when you run perl scripts. I'm sure you could recompile Perl to include Fink's installation directory, or move the files to the right places, but instead I found a different way. In your perl script, simply put:
and Perl will look in the correct directory.use lib '/sw/lib/perl5/5.8.6/darwin-thread-multi-2level';
[robg adds: A much older hint refers to some compiler issues with gcc3 that prevent the DBI and DBD modules from compiling. The hint claims that simply changing the compiler to gcc2 solves those issues. I'm not sure if that's still relevant to the issue in this hint, but it might be something to look at. In any event, using the Fink versions appears to be a valid workaround.]

