[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: configure fails when DB-2.7.3 installed via FreeBSD ports mech

I recommend using the BerkeleyDB software as distributed
by Sleepycat.  The current FreeBSD "port" is not well
packaged as it requires special handling by dependent
applications.  I sent a note to the port maintainer suggesting
he repackage the port to either 1) install per Sleepycat's
default, 2) per the old 2.3.16 port, 3) or other mechanism
which does not change the header names (as used in source)
or library name (as used in linking).

You can install the BerkeleyDB as packaged with the default prefix
(/usr/local/BerkeleyDB) or other prefix.  Just be sure to
modify the include/lib paths appropriately.  

>CPPFLAGS="-I/usr/local/include/db2" \ LDFLAGS="-L/usr/local/lib" \
>LIBS="-ldb2" \ ./configure --prefix=/usr/local/site/ldap --with-ldbm \

Sorry... short of hacking configure (or playing symlink games),
our configure will not detect this (or other) oddball packaging.

You can REPLACE the port's patch to install DB per the old 2.3.16
port.  Install patch below as /usr/ports/databases/db/patches/patch-aa,
then cd /usr/ports/databases/db; make deinstall, make clean, make install.

--- ../dist/Makefile.in.orig    Mon Dec  7 22:05:59 1998
+++ ../dist/Makefile.in Mon Mar 29 00:59:52 1999
@@ -141,11 +141,11 @@
    $(rm) -f confdefs.h db.h db_int.h db_185.h include.tcl

 prefix=    @prefix@
-bindir=    $(prefix)/BerkeleyDB/bin
-libdir=    $(prefix)/BerkeleyDB/lib
-mandir=    $(prefix)/BerkeleyDB/docs
+bindir= $(prefix)/bin
+libdir= $(prefix)/lib
+mandir= $(prefix)/share/doc/db

 dmode= 755
 emode= 555