Making dspam 2.6:
dspam will run as root, so needs the shared library setup carefully configured. The easiest way to do this is to use the
-R option in
LD_OPTIONS environment variable at build time. This way the binaries will know where to find their libraries when they are needed, without all that dangerous mucking about with the sendmail's
$LD_LIBRARY_PATH environment.
$ cd dspam-2.6
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/BerkeleyDB.4.1/lib
$ LD_OPTIONS="-R/usr/local/BerkeleyDB.4.1/lib -R/usr/local/lib"
$ ./configure --with-db4-includes=/usr/local/BerkeleyDB.4.1/include
$ make
...and do your
make install as root
Making on RedHat 8.0
Hi MarioThis works for me, RedHat 8.0, your milage may vary:# export LDFLAGS='-Wl,--rpath -Wl,/usr/local/BerkeleyDB.4.1/lib -Wl,--library-path -Wl,/usr/local/BerkeleyDB.4.1/lib'
# ./configure --with-db4-includes=/usr/local/BerkeleyDB.4.1/includeThis 'configure's and 'make's… but since I don't run mail on Linux
I can't tell you if it actually _works_ :)As a side bonus, the binary should know where it's libraries are at
run time without having to muck about with /etc/ld.so.conf or
the LD_LIBRARY_PATH variable.