Mail Applications
Berkeley Database (Perl Module)
AMaViS wants to use the BerkleyDB Perl module (part of the SleepyCat db-*) distribution. Sun pre-compile a version of db-* for us in /opt/sfw but don't compile the Perl module.
To complicate matters, you will (probably) need a more recent version of db-* than the Sun installed one (look in /opt/sfw/include/db.h for Sun's version).
Note
You must configure the build to get the header files before you can compile the BerkeleyDB module.
cd .../db-4.3.29 cd build_unix ../dist/configure cd ../perl/BerkeleyDB
Note
Edit config.in to point at /opt/sfw/{include,lib}
perl Makefile.PL make make test make install
If you really want to build Berkeley DB then:
../dist/configure --prefix=/usr/local/db-4.3.29 make make install cd ../perl/BerkeleyDB cp config.in config.in.0 sed -e 's/BerkeleyDB/db-4.3.29/' -e '/^#DBNAME/s/.*/DBNAME = -ldb-4.3/' config.in.0 config.in BERKELEYDB_LIB="/usr/local/db-4.6.21/lib -R/usr/local/db-4.6.21/lib" perl Makefile.PL make make test make install
Note
Check you're using your version of libdb with
ldd ./blib/arch/auto/BerkeleyDB/BerkeleyDB.so
Document Actions