PAM(Pluggable Authentication Modules)을 개발할 때 관련 개발환경이 구성이 되어 있어야 빌드에러가 발생하지 않는다.


PAM 소스를 빌드할 때 에러가 발생하면 거의 헤더파일이 없는 상태이다.


헤더파일의 위치는 /usr/include/security/* 에 있는 파일들이다.


개발환경을 구성하는 방법은 아래와 같이 패키지를 설치하면 된다.


On the Centos and RHEL -build VMs, install the pam-devel package:

    sudo yum install pam-devel

On all the Debian/Ubuntu -build virtual machines, install libpam0g-dev:

    sudo apt-get install libpam0g-dev


참조: https://mariadb.com/kb/en/library/installing-correct-libraries-for-pam-and-readline/

Posted by dcmru
,