pam_appl.h and pam_misc.h missing, in rshd.c source code

后端 未结 4 1744
时光取名叫无心
时光取名叫无心 2021-02-20 05:20

I am working on a centOS 5.5 OS.

It shows error that /security/pam_appl.h and /security/misc.h file is missing.

Actually my rshd.c does not load

相关标签:
4条回答
  • 2021-02-20 05:32

    For people who find this through the search engines, the following worked for me on CentOS 7:

    yum install pam-devel
    
    0 讨论(0)
  • 2021-02-20 05:45

    if someone is looking for debian/ubuntu, try this sudo apt-get install libpam0g-dev

    0 讨论(0)
  • 2021-02-20 05:45

    You need the rpm for pam-devel, available for CentOS here. Alternatively, you can download pam from here and install it locally.

    Edit: To compile it, this works fine on my system:

    wget http://linux-pam.org/library/Linux-PAM-1.1.6.tar.bz2
    tar xvjf Linux-PAM-1.1.6.tar.bz2
    cd Linux-PAM-1.1.6/
    ./configure --prefix=$HOME/local
    make && make install
    

    If it does not, please report the compiler errors.

    0 讨论(0)
  • 2021-02-20 05:51

    I don't have CentOS at the moment, but it seems like this is a common problem. See here for information, it's suggested you install pam-devel so you don't have to build from source via:

    yum install pam-devel
    

    Seems everytime I find a site where the problem is the same as yours the fix is to install this. I'm downloading CentOS 5.5 to give it a try now, but did you just try running that command?

    If you did install that and it's still not finding the header files I'd give this a try:

    cd /
    sudo find . -name "pam_appl.h"
    sudo find . -name "pam_misc.h"
    

    It's possible that they were installed and didn't go into your standard include path, or didn't go into the security/ directory, in which case you'll need to either move them or change the way the header is included in your code.

    Note for the sudo commands you'll have to enter your password.

    0 讨论(0)
提交回复
热议问题