On Tue, Sep 21, 2010 at 5:23 PM, Ryan Schmidt <subversion-20...@ryandesign.com> wrote: > On Sep 21, 2010, at 08:52, Stewart Dean wrote: > >> I built apr and apr-util on this machine, then ran configure like this: >> >> ./configure --with-apr=/usr/local/apr/bin --with-apr-util=/usr/local/apr/bin >> >> The configure runs fine up until: >> >> checking for availability of Berkeley DB... no >> configure: error: Berkeley DB 4.0.14 or newer wasn't found. >> >> So I configure, made and made install the Berkeley DB at the latest level of >> a fresh download from Oracle and called configure again: >> >> ./configure --with-apr=/usr/local/apr/bin --with-apr-util=/usr/local/apr/bin >> --with-berkele >> y-db=db.h:/usr/local/BerkeleyDB.5.1/include:/usr/local/BerkeleyDB.5.1/lib:XXXX >> >> >> where XXXX has been lib, libdb, libdb-5.1 >> >> in all cases I still get: >> >> checking for availability of Berkeley DB... no >> configure: error: Berkeley DB 4.0.14 or newer wasn't found. >> >> The binaries are in /usr/local/BerkeleyDB.5.1/bin....in the off chance that >> they weren't being seen, I copied them all into /usr/local/bin, but I stll >> get those two lines. > > In MacPorts, we successfully use the following configure argument: > > --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6 > > So, adapted to your BDB version and prefix, try: > > --with-berkeley-db=:/usr/local/BerkeleyDB.5.1/include:/usr/local/BerkeleyDB.5.1/lib:db-5.1 > > Note that apr-util will also need to have been compiled against the same > version of BDB. > > That said, do you even need BDB support? Most people don't anymore and you > could just use --without-berkeley-db to disable it.
Amen. Unless you need to upgrade older Berkeley DB based repositories, then discard it as unsupportable.