Friday, June 6, 2008

Installing BerkeleyDB perl module from CPAN

I was getting an error executing:

cpan -i BerkeleyDB

This seemed to be because I did not have Berkeley installed on my mac.  Well no problem, just execute

port install db46

from Macports.  After that finishes, just set up a link in /usr/local e.g.

ln -s  /usr/local/BerkeleyDB.4.6/ /usr/local/BerkeleyDB

and then 

cpan -i BerkeleyDB

should work.

2 comments:

Josh Huckabee said...

Thank you! Worked great

Tao said...

Thank you, you saved me a lot of time!