找回密码
 注册
查看: 415|回复: 2

configure: error: PAM headers not found,编译openssh服务报错解决方法

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2023-8-22 15:00:05 | 显示全部楼层 |阅读模式
编译openssh报错
8 Y& F8 u; k, @% ~( Vconfigure: error: PAM headers not found
( P2 Y& `+ Y9 X6 pchecking for arc4random_stir... no- P0 Y4 i  Z  q- c. x3 G9 g2 D- r# l
checking for arc4random_uniform... no
* o$ U' s, D+ @8 a+ p; Wchecking whether OpenSSL's PRNG is internally seeded... yes
6 n  F# o4 t: _5 Kchecking for ia_openinfo in -liaf... no4 a# Q1 p  x4 U2 l
checking for crypt in -lcrypt... yes9 O9 D; s+ H( G  B, b
checking for crypt... yes+ ^. S( c1 d4 c+ K# m) z
configure: error: PAM headers not found7 F/ G- U/ l' h: l& A/ F

3 c. T. @8 Y2 L
2 _& c# u! m/ h8 l. H* R$ {) S( \  ~" {/ n" T
解决办法:
) {- {) W0 p2 B$ F- c% ]yum install gcc zlib-devel pam-devel libselinux-devel zlib-devel openssl-devel -y
, d0 [  i7 w; W. E3 L3 n' h0 |! R7 e. t* |+ P; ]# o
安装时openssl-devel会影响其他安装包安装过程,建议去掉使用下面的方式的:

: M( S8 P& m. U
yum install gcc zlib-devel pam-devel libselinux-devel zlib-devel -y; G* g; E5 ?7 {# ^
$ e3 d; J2 U! m8 Y/ D' I) Z, c
glibc-2.17-325.el7_9.i686 is a duplicate with glibc-2.17-317.el7.x86_64glibc-common-2.17-325.el7_9.x86_64 is a duplicate with glibc-common-2.17-317.el7.x86_64krb5-libs-1.15.1-50.el7.x86_64 is a duplicate with krb5-libs-1.15.1-37.el7_6.x86_64krb5-libs-1.15.1-51.el7_9.i686 is a duplicate with krb5-libs-1.15.1-50.el7.x86_64libselinux-2.5-15.el7.i686 is a duplicate with libselinux-2.5-14.1.el7.x86_64libselinux-python-2.5-15.el7.x86_64 is a duplicate with libselinux-python-2.5-14.1.el7.x86_64libselinux-utils-2.5-15.el7.x86_64 is a duplicate with libselinux-utils-2.5-14.1.el7.x86_64nspr-4.32.0-1.el7_9.x86_64 is a duplicate with nspr-4.21.0-1.el7.x86_64nss-softokn-freebl-3.67.0-3.el7_9.i686 is a duplicate with nss-softokn-freebl-3.44.0-8.el7_7.x86_64nss-util-3.67.0-1.el7_9.x86_64 is a duplicate with nss-util-3.44.0-4.el7_7.x86_641:openssl-1.0.2k-24.el7_9.x86_64 is a duplicate with 1:openssl-1.0.2k-19.el7.x86_641:openssl-libs-1.0.2k-24.el7_9.i686 is a duplicate with 1:openssl-libs-1.0.2k-19.el7.x86_64policycoreutils-2.5-34.el7.x86_64 is a duplicate with policycoreutils-2.5-29.el7_6.1.x86_64selinux-policy-3.13.1-268.el7.noarch is a duplicate with selinux-policy-3.13.1-229.el7_6.12.noarchselinux-policy-targeted-3.13.1-268.el7.noarch is a duplicate with selinux-policy-targeted-3.13.1-229.el7_6.12.noarchzlib-1.2.7-19.el7_9.i686 is a duplicate with zlib-1.2.7-18.el7.x86_64
; V4 m; C6 E5 [7 v2 p
! b3 N5 [1 z$ I4 V

' A. ?2 ^4 S! ^/ P; @8 {2 H+ h+ E2 l1 I
4 y) K5 \' a' X; q
4 {( g. |6 b0 ]' b' _! p

% h5 c+ y, N3 \+ x2 x4 M& o5 j# p- m7 a  I

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-8-22 15:00:06 | 显示全部楼层
yum install gcc zlib-devel pam-devel libselinux-devel zlib-devel -y  ^; @! y7 Z) u& Y( \! w
+ ~. B! W$ L0 `1 i% e
configure: WARNING: unrecognized options: --with-md5-passwords( `8 G; t; j: v+ l

1 \: J  B% c% O" ?OpenSSH has been configured with the following options:
, @$ H( \: I" o) {6 \1 r* s                     User binaries: /usr/bin9 W" H3 W; Z' {" Y
                   System binaries: /usr/sbin. v' t7 e2 P" y" h; b  q& c/ _
               Configuration files: /etc/ssh
! ~5 Y- [6 g+ `  t' c3 c                   Askpass program: /usr/libexec/ssh-askpass
0 s, d; P( T' \4 r8 H6 N( F                      Manual pages: /usr/share/man/manX
6 D2 P) o! x; ~% }0 Z6 h                          PID file: /var/run
7 P/ a+ {: g, _, a0 ~5 K4 }5 }  Privilege separation chroot path: /var/empty
% {9 `1 i7 w; |# o            sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin& c  K- ^/ w8 n; p! y/ n; Z
                    Manpage format: doc3 t$ W% a: X  r
                       PAM support: yes# t) U) ?4 E' H
                   OSF SIA support: no' G$ f" S8 j/ ^! Q
                 KerberosV support: no: Q4 H) B" H$ R% S& |
                   SELinux support: no  j' i) j! g$ p
                   libedit support: no
" }1 a$ P6 v* U& R; n1 v                   libldns support: no
0 c7 \& `: z9 H' \( a  Solaris process contract support: no
1 D# W  ]) e; u5 g           Solaris project support: no
3 I, s# @' C/ U& Q# n, J( e+ W0 X         Solaris privilege support: no9 e4 T9 Q& P7 D) X
       IP address in $DISPLAY hack: no
- m2 @7 X, c' T+ c7 q( E           Translate v4 in v6 hack: yes
2 y( h- [2 Q5 [: V' b                  BSD Auth support: no
: t& K: w1 h9 |3 D3 |, Q              Random number source: OpenSSL internal ONLY; m2 {; }! H) I- S2 a& o
             Privsep sandbox style: seccomp_filter
/ J, M5 `! L8 j$ u$ U. R                   PKCS#11 support: yes
2 c: ~( r( a) e# P9 u2 ^& X                  U2F/FIDO support: yes+ z/ Q' E4 _  t- i# e- w: _5 O
1 o, _+ S2 x  i
              Host: x86_64-pc-linux-gnu8 ^4 N$ k! p, X* ^; q+ @
          Compiler: cc -std=gnu117 T- w+ d9 F, Y  Z% d' q" b6 q; N
    Compiler flags: -g -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong -fPIE  $ I8 H4 X4 o5 X8 }0 f5 }* K
Preprocessor flags: -I/usr/ssl  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE% L. H3 p# H# a0 h
      Linker flags: -L/usr/ssl  -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fstack-protector-strong -pie 6 V' {" g" [! N# b
         Libraries: -ldl -lutil  -lresolv
( [& e) k8 S- A: d) t     +for channels: -lcrypto  -lz) J5 X& l) i0 O& ?2 F4 y
         +for sshd: -lcrypt  -lpam# _) L" `/ z* K! d
/ H) @1 c- d0 t9 k2 |/ W7 n4 c$ p
PAM is enabled. You may need to install a PAM control file + a! J# y; \8 }6 h  j" t/ ^; D
for sshd, otherwise password authentication may fail.
, G- d7 W5 {" Q+ G! b$ aExample PAM control files can be found in the contrib/ ( B/ Q8 j  O. K- [2 N! p6 u) E
subdirectory
+ x! P1 [* g; s* U# I

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-8-22 15:00:07 | 显示全部楼层
报了错误3 F9 t- h1 [5 q0 g8 X3 s6 t
/ b; m; I0 x% V! T+ N5 {
configure: error: PAM headers not found+ N$ M+ _; v" _1 A  T# B
解决方案, H0 A6 z' r$ R8 P0 v* N
yum -y install pam-devel
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:49 , Processed in 0.019375 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表