For When You Can't Have The Real Thing
[ start | index | login ]
start > dspam


Created by dave. Last edited by dave, 20 years and 236 days ago. Viewed 3,365 times. #1
[edit] [rdf]
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 Mario

This 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/include

This '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/ or the LD_LIBRARY_PATH variable.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt