Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
Duplicate of… – Ether Jan 24 '10 at 9:06
up vote 2 down vote accepted

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

share|improve this answer
Thanks a lot for this. Worked fine after I installed the client libraries from here:… – Brigante Jan 22 '10 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .