[Dovecot] dovecot does not find libpam when compiling with customized prefix

Timo Sirainen tss at iki.fi
Mon Jun 11 14:59:06 EEST 2012


On 11.6.2012, at 8.20, Roland wrote:

> I try to compile dovecot 2.1.7 with a customized --prefix setting and --with-pam . Although I installed libpam into the same --prefix, dovecot does not find it:
> 
> checking for pam_start in -lpam... no
> configure: error: Can't build with PAM support: libpam not found
> 
> The same or a similar problem seems to have appeared 4 years ago:
> http://www.dovecot.org/list/dovecot/2008-February/028750.html
> 
> Which libpam file does dovecot expect in which directory? And possibly there is something wrong with the pam_start function?

Dovecot doesn't expect anything. gcc/ld expects things. You'll need to use the generic options to tell where the PAM files are, something like:

LDFLAGS=-L/where/is/pam/lib CPPFLAGS=-I/where/is/pam/include ./configure



More information about the dovecot mailing list