Forwarding Address: OS X

Wednesday, November 05, 2003

Should you need to install DBD::mysql on Panther, here's a few tips you might find helpful. First: DBD::mysql installation will likely fail if you try to do it using the CPAN installer because it won't be configured with your database settings. You'll need to manually install it. Get it from CPAN here: DBD-mysql-2.9003.

To create the Makefile you'll need to pass it your database's username and password:

perl Makefile.PL --testuser=usename --testpassword=password
Next you'll need to add the following step (thanks to Casey West):
perl -pi -e's/MACOSX/env MACOSX/' Makefile

I also had to sudo make install which makes the whole process like so:

perl Makefile.PL --testuser=username --testpassword=password
perl -pi -e's/MACOSX/env MACOSX/' Makefile
make test
sudo make install
"Good luck, you're gonna need it." - Han Solo