Need to install DBD::MySQL on a MAC without a local MySQL server for Perl

I get this error trying to install DBD:MySQL for Perl.  What is a good way to install this library without installing MySQL locally?

>
cpan[3]> install DBD::mysql
Running install for module 'DBD::mysql'
Running make for C/CA/CAPTTOFU/DBD-mysql-4.032.tar.gz
Checksum for /Users/TradeInfo/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.032.tar.gz ok
Scanning cache /Users/TradeInfo/.cpan/build for sizes
............................................................................DONE

  CPAN.pm: Building C/CA/CAPTTOFU/DBD-mysql-4.032.tar.gz

Can't exec "mysql_config": No such file or directory at Makefile.PL line 73.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'root' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.
rudy201Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Casey WeaverNetwork EngineerCommented:
This post suggests just installing the MySQL client so that the dependency that it relies on is there. I don't have a mac accessible to me at the moment or I would test it for you: http://www.experts-exchange.com/OS/Apple_Operating_Systems/Q_26450502.html#a33611564
1
rudy201Author Commented:
This is how I solved this problem

Step 1:
Install 32 bit version of MySQL Community Server

Step 2:
sudo perl -MCPAN -e shell
install DBI::DBD

Step 3:
In my terminal either:
$ export VERSIONER_PERL_PREFER_32_BIT=yes
or
$ defaults write com.apple.versioner.perl Prefer-32-Bit -bool yes

Step 4:
Apply this setting system wide (I needed this to work in Eclipse)

$ sudo defaults write /Library/Preferences/com.apple.versioner.perl Prefer-32-Bit -bool yes
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.