Compiling Postfix

From SlackWiki
Jump to: navigation, search

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.h file from where the postfix makefile is looking for it.


Problem: Make dies complaining about ld: cannot find -ldb.

Solution:

The libdb.so file cannot be found. Make a link pointing to /lib/libdb-4.2.20 from /lib/libdb.so file:
ln -s /lib/libdb-4.2.20 /lib/libdb.so