<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
I am trying to build Bogofilter on my ISP's server, which runs FreeBSD.  I
built BerkeleyDB and installed it in <b>$HOME/usr</b>, which has the following
subdirectories:<b> lib</b>, <b>include</b>, <b>docs</b> and <b>bin</b>.<br>
<b>lib</b> contains <b>libdb-4.1.a</b>, <b>libdb-4.1.la</b> and <b>libdb-4.1.so.0.0</b><br>
<br>
I used the following commands to do the build:<br>
    <b>env CPPFLAGS=-I/home/bbell/usr/include LIBS=-l/home/bbell/usr/lib
LDFLAGS=-L/home/bbell/usr/lib<br>
    ./configure --prefix=/home/bbell --with-db=/home/bbell/usr<br>
</b><br>
configure runs for a while, then gives the following output:<br>
<br>
<b>checking whether gcc accepts -g... yes<br>
checking for gcc option to accept ANSI C... none needed<br>
checking for style of include used by make... GNU<br>
checking dependency style of gcc... gcc<br>
checking for ranlib... ranlib<br>
checking for flex... flex<br>
checking for yywrap in -lfl... no<br>
checking for yywrap in -ll... yes<br>
checking lex output file root... lex.yy<br>
checking whether yytext is a pointer... yes<br>
checking for additional compiler options... ignoring -Wmissing-format-attribute<br>
ignoring -Wsequence-point<br>
ignoring -Wfloat-equal<br>
ignoring -Wno-system-headers<br>
 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast<br>
-Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declaratio<br>
ns -Wnested-externs -ggdb -fno-common -Wchar-subscripts -Wcomment -Wimplicit
-Wr<br>
eturn-type -Wpointer-arith<br>
checking for cos in -lm... yes<br>
checking whether db_create is declared... yes<br>
checking whether optreset is declared... no<br>
checking for library providing db_create... no<br>
configure: error: Can not locate a suitable Berkeley DB library.  Use --with-db=<br>
PATH to specify the path to a v3+ install directory<br>
$ </b><br>
<br>
I have tried experimenting with the paths specified in the parameters; some
combinations abort even earlier than this one.<br>
<br>
This happened with both ver. 11 and ver. 12.2<br>
<br>
What do I need to do?<br>
<br>
Sam<br>
</body>
</html>