Compiling Postfix

From SlackWiki
Revision as of 21:25, 6 June 2009 by Erik (talk | contribs) (Copy from old, had no category, placed in Tips)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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