Compiling Postfix
Errors When Compiling From Source
(from a Slackware 11 perspective)
Problem: Make dies complaining about a missing db.h file and/or dbx-devel.
Solution:
- 1) Make sure you have the db4 library (found on the Slackware install CD).
- 2) If you have the db library installed, Postfix's makefile is dumb so,
ln -s /usr/include/db42/db.h /usr/include
- This makes a link to the
db.hfile from where the postfix makefile is looking for it.
Problem: Make dies complaining about ld: cannot find -ldb.
Solution:
- The
libdb.sofile cannot be found. Make a link pointing to/lib/libdb-4.2.20from/lib/libdb.sofile:ln -s /lib/libdb-4.2.20 /lib/libdb.so
- The