TranslateProject/sources/tech/20150518 Linux FAQs with Answers--How to fix 'fatal error--security or pam_modules.h--No such file or directory'.md
2015-05-18 15:56:59 +08:00

1.4 KiB

Linux FAQs with Answers--How to fix “fatal error: security/pam_modules.h: No such file or directory”

Question: I was trying to compile a program on [insert your Linux distro], but was getting the following compile error:

"pam_otpw.c:27:34: fatal error: security/pam_modules.h: No such file or directory"

How can I fix this error?

The missing header file 'security/pam_modules.h' is part of development files for libpam, a PAM (Pluggable Authentication Modules) library. Thus to fix this error, you need to install libpam development package, as described below.

On Debian, Ubuntu or Linux Mint:

$ sudo apt-get install libpam0g-dev

On CentOS, Fedora or RHEL:

$ sudo yum install gcc pam-devel

Now verify that the missing header file is installed under /usr/include/security.


via: http://ask.xmodulo.com/fatal-error-security-pam-modules.html

作者:Dan Nanni 译者:译者ID 校对:校对者ID

本文由 LCTT 原创翻译,Linux中国 荣誉推出