A more technical entry than I’d usually post here, but this is for the benefit of anyone who is having problems installing DBI and DBD::mysql on Mac OS X. I needed it to get Movable Type using MySQL on my PowerBook and spent far too long trying to get this to work. I should, however, say that I really don’t understand what any of this is or does, only that it makes Movable Type’s mt-check.cgi script tell me DBD::mysql is installed. Whatever that is. Follow these instructions at your own risk!
My problem was that having found these simple instructions for installing DBD::mysql, I’d always get this error when following step 4:
Checking if your kit is complete... Looks good Warning: prerequisite DBI 1.08 not found. [etc...]
This discussion implied I might need to install the Apple Developer Tools. Doing this made no difference.
Installing Bundle-DBI.dmg from this page made no difference.
Thankfully Nick came to my rescue and told me how to make and install the required perl modue, a process I’ve simply never succeeded with over the years. So the full sequence is now:
- Download DBI from cpan (click the tiny easy-to-miss ‘Download’ link).
- Unpack the file using Stuffit Expander.
- Using Terminal,
cdinto the directory you just created (eg, type
make && make install
- Follow the instructions mentioned above for installing DBD::mysql.
Hopefully then you’ll be up and running. Unfortunately, if you have any problems I’m unlikely to be of assistance, as I barely understand what’s going on myself.