问题: 我尝试在 [某某 Linux 发行版] 上编译程序,但是出现下面的编译错误:
"pam_otpw.c:27:34: fatal error: security/pam_modules.h: No such file or directory"
我怎样才能修复这个错误?
缺失的头文件 'security/pam_modules.h' 是 libpam 开发版的一部分,一个 PAM(Pluggable Authentication Modules:插入式验证模块)库。因此要修复这个错误,你需要安装 libpam 开发包,如下所示。
对于 Debian、 Ubuntu 或者 Linux Mint:
$ sudo apt-get install libpam0g-dev
对与 CentOS、 Fedora 或者 RHEL:
$ sudo yum install gcc pam-devel
现在验证缺失的头文件是否安装到了 /usr/include/security。
在Linux中修复“fatal error: lame/lame.h: No such file or dir:http://www.linuxdiyf.com/linux/11735.html
如何在Linux中修复“fatal error: x264.h: No such file or dire:http://www.linuxdiyf.com/linux/10626.html
修复“fatal error: openssl/aes.h: No such file or directory:http://www.linuxdiyf.com/linux/3462.html
fatal error:jsoncpp/json/json.h:No such file or directory:http://www.linuxdiyf.com/linux/2352.html
A fatal error has been detected by the Java Runtime Environm:http://www.linuxdiyf.com/linux/1765.html