Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Then:

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.

http://pastebin.com/f45ccc16f

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 stackoverflow.com/questions/2098391/… –  Ether Jan 24 '10 at 9:06

1 Answer 1

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: opensource.apple.com/darwinsource/other/… –  Brigante Jan 22 '10 at 14:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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