[sf-perl] BerkeleyDB.pm on Mac OS X

Vicki Brown vlb at cfcl.com
Fri Dec 29 23:53:24 PST 2006

Are we doing something unbelievably stupid?

We recently migrated everything from a FreeBSD server to Mac OS X
(10.4.8). One of Rich's web apps is complaining

Can't locate BerkeleyDB.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.8/darwin-2level /usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at

OK, so we (re?)installed BerkeleyDB, the latest because why not and then
(when we still got the error) tried
    cpan install BerkeleyDB

Ooooo. It's scary to see that many compile errors scroll past. :-(

cc -c  -I/usr/local/BerkeleyDB/include -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement
-O3   -DVERSION=\"0.31\" -DXS_VERSION=\"0.31\"
"-I/usr/local/lib/perl5/5.8.8/darwin-2level/CORE"   BerkeleyDB.c
BerkeleyDB.xs:74:2: error: #error db.h is from Berkeley DB 1.x - need at
least Berkeley DB 2.6.4
BerkeleyDB.xs:215: error: parse error before 'DB_ENV'
BerkeleyDB.xs: In function 'GetArrayLength':
BerkeleyDB.xs:819: error: 'DBC' undeclared (first use in this function)
BerkeleyDB.c: In function 'XS_BerkeleyDB_db_version':
BerkeleyDB.c:1753: warning: assignment makes pointer from integer without
a cast
BerkeleyDB.xs:4268: error: 'DBTKEY' has no member named 'flags'
make: *** [BerkeleyDB.o] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

Anyone? Help?
- Vicki

  zzZ                   San Francisco Bay Area, CA
 z  |\     _,,,---,,_   Books, Cats, Tech  
zz /,`.-'`'    -.  ;-;;,_  http://cfcl.com/vlb
  |,4-  ) )-,_. ,\ ( `'-'  http://cfcl.com/vlb/weblog
 '---''(_/--'  `-'\_)      http://vlb.typepad.com/commentary/

More information about the SanFrancisco-pm mailing list