I've got a Mac Mini Server with Snow Leopard 10.6.2 64bit. I'm trying to install the Perl module DBD::mysql but cannot get it to work.

Is probably worth mentioning that this is the first time I'm using a Mac.

I got the following installed:

MySQL: Community Server 5.1.42 x86 64bit (installed from the DMG Archive for Mac OS X 10.6 on MySQL's website)

Perl: 5.10.0 (pretty sure it's 64bit after looking through perl -V)

I'm trying to install DBD::mysql through the cpan console by typing:

sudo cpan


install DBD::mysql

This looks like it works until it gets to the make stage where it fails miserably.

I've put the output on pastebin. There are so many errors and I have no idea what they mean.


I've got the MySQL server that comes with Mac OS X Server shut off. I tried installing the perl module on this mysql server as well but got the same result.

Hopefully someone here can help and let me know hat I'm doing wrong.

Thanks Johannes


You need the MySQL client libraries (and headers) installed. There probably will be some Mac MySQL client 'developer' package, so you need it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.