bogofilter does not compile with external BerkeleyDB

Matthias Andree matthias.andree at gmx.de
Wed Apr 23 12:31:22 CEST 2003


Marek Kowal <marek.kowal at portal.onet.pl> writes:

> Hi there,
>
> I've downloaded bogofilter from CVS (just serveral minutes ago). It does
> require BerkeleyDB v3+ to operate, so I've installed it in my private home
> directory:
>
> db-4.1.25.NC$ ./configure --prefix=/home/cnp/usr
>
> I've checked it, it sure is installed there:
>
> $ ls /home/cnp/usr/lib/
> libdb-4.1.a  libdb-4.1.la  libdb-4.1.so  libdb-4.so  libdb.a  libdb.so
>
> Unfortunately, the ./configure phase of bogofilter fails:
>
> ./configure --prefix=/home/cnp/usr/ --with-db=/home/cnp/usr
> (...)
> checking for library providing db_create... -ldb
> checking if a program can be linked against BerkeleyDB and run... no
> configure: error: Cannot run a program linked against libdb.
> Did you adjust your library search path to include your libdb?

You can try to manually add the proper path, try:

env CPPFLAGS="-I/home/cnp/usr/BerkeleyDB.4.1/include/" \
    LDFLAGS="-L/home/cnp/usr/BerkeleyDB.4.1/lib/" \
    LIBS="-ldb-4.1" ./configure --prefix=/home/cnp/usr

-- 
Matthias Andree




More information about the bogofilter-dev mailing list