Compiling apr-util with bdb support

07 Jun 2009
Posted by stylesen

While compiling apr-util if you want to point a specific version of bdb installed in your system use the the following:

$ ./configure --prefix=/usr/local/apr-util-1.3.9 \
--with-apr=/usr/local/apr-1.3.8 \
--with-berkeley-db=/usr/local/BerkeleyDB.4.7/include:/usr/local/BerkeleyDB.4.7/lib

UPDATE: With latest versions of apr-util use the following:

Compile bdb with the following config option:

$ ../dist/configure --prefix=/home/stylesen/builds/BerkeleyDB.4.7
$ export LD_RUN_PATH="$LD_RUN_PATH:/home/stylesen/builds/BerkeleyDB.4.7/lib"

Compile apr-util with the following config option:

./configure --prefix=/home/stylesen/builds/apr-util-1.3.12 \
--with-apr=/home/stylesen/builds/apr-1.4.5 --with-dbm=db47 \
--with-berkeley-db=/home/stylesen/builds/BerkeleyDB.4.7/include:\
/home/stylesen/builds/BerkeleyDB.4.7/lib