SV: Freeradius PAM module compilation error

Chris Moules chris at
Wed Mar 18 13:26:32 CET 2009

Robert Svensson wrote:
> What do you mean?
> I have PAM installed and running using the PAM radius module. I just need to recompile the radius PAM module to incorporate a few customized error messages regarding access-challenges. That's all.
> -----Ursprungligt meddelande-----
> Från: at [ at] För Alan DeKok
> Skickat: den 18 mars 2009 11:54
> Till: FreeRadius developers mailing list
> Ämne: Re: Freeradius PAM module compilation error
> Robert Svensson wrote:
>> Hi,
>> I'm trying to compile the PAM module without any greater luck.
>> Make gives me:
>> ld -Bshareable pam_radius_auth.o md5.o -lapm -o
>> ld: cannot find -lpam
>> make: *** [] Error 1
>> I cound really use some help on this one.
>   You will need to install PAM on yor system.  The module is a plugin between PAM and RADIUS.  It doesn't implement PAM.
>   Alan DeKok.
> -

You may need to install the PAM development libraries.
Depending on what distribution you are running having software installed do not install the development headers etc for the

Example, Debian:
libpam, libpam-dbg, libpam-dev, libpam-doc

PAM will work with libpam installed, documentation is in the libpam-doc package and devel / debug in libpam-dev, libpam-dbg
respectively. To build PAM software you need libpam-dev.


More information about the Freeradius-Devel mailing list