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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2023-8-22 15:00:05 | 显示全部楼层 |阅读模式
编译openssh报错
& ^! i, D; M  [$ O' }configure: error: PAM headers not found( O7 n1 Y( Y  Q- ]5 [, j
checking for arc4random_stir... no
4 t% ?% F, y6 F: vchecking for arc4random_uniform... no0 _/ c' b# r0 G* z
checking whether OpenSSL's PRNG is internally seeded... yes8 ~; A8 K* Y+ g. D/ M' n
checking for ia_openinfo in -liaf... no" h  E5 G" a  {0 V9 L" I# [7 P
checking for crypt in -lcrypt... yes
+ g4 A. m) K1 i' kchecking for crypt... yes; @7 Z& j  Q: k  l
configure: error: PAM headers not found8 H+ h( ]( P- g: U& r" h3 N1 J! ?
6 ]7 R, x1 p  R" N

% p. J# l; ]1 D/ S9 ~$ C* v5 t. c8 _1 Z: H7 G1 e6 C" T
解决办法:7 }( Q* ~. N6 E( p; K
yum install gcc zlib-devel pam-devel libselinux-devel zlib-devel openssl-devel -y8 }" D% Z2 Y/ q* l+ [

8 N3 X4 g0 B2 p1 p安装时openssl-devel会影响其他安装包安装过程,建议去掉使用下面的方式的:
1 E8 C1 b! h7 w5 r0 c; A. z, Q
yum install gcc zlib-devel pam-devel libselinux-devel zlib-devel -y  S' x0 N2 }; }* \/ }& x
( M3 y. k0 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# C  I  \( j& {
$ y( V6 I2 U' R( w

+ G( b# N0 p8 L/ j5 T
" S8 [) w& o0 J6 n+ \' S

0 A9 b+ o3 ^- c9 Q" X# Y1 E- T0 G/ P3 Q+ r" H2 j

' Y* `+ ]; f& n; [0 x2 S. F& j1 N$ a) y" s9 C& g5 f0 A& p* w: U

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-8-22 15:00:06 | 显示全部楼层
yum install gcc zlib-devel pam-devel libselinux-devel zlib-devel -y
+ w# @  s/ C' E# \4 X4 w
9 _$ N+ }! d) b/ z& F3 U* Wconfigure: WARNING: unrecognized options: --with-md5-passwords' _5 b, T. k$ H4 y

, [5 K$ Q7 P& n) S' jOpenSSH has been configured with the following options:5 b5 |  u* K, U1 v# ~3 p
                     User binaries: /usr/bin2 z$ \* u+ t+ m! |/ c& l
                   System binaries: /usr/sbin$ ~( O6 l* r1 {/ T& k& _
               Configuration files: /etc/ssh- C& [# F: u+ f" C
                   Askpass program: /usr/libexec/ssh-askpass
# J8 o4 L5 C4 {                      Manual pages: /usr/share/man/manX
# y; U9 a/ A1 H$ n/ ?4 m4 p! r: ?                          PID file: /var/run; `+ ]( ?1 Y* B
  Privilege separation chroot path: /var/empty# D7 i- ?8 b6 i2 E
            sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin+ J( U: E: j/ z: P+ m% g
                    Manpage format: doc
* o6 S& k$ v  a7 K# z/ R                       PAM support: yes$ x6 u# `1 Z; r
                   OSF SIA support: no
/ C- K2 v7 ~$ P8 _! l! n1 S- F                 KerberosV support: no
( z; l0 H. A0 Q1 l6 o* X  u. \: R                   SELinux support: no/ M' g7 N( r1 ~* A. {' H; s6 a% c
                   libedit support: no
' M, P9 T0 P, e                   libldns support: no) H3 e* M5 @- W& `  j+ Z+ A
  Solaris process contract support: no5 [9 Z( g/ h  R6 L
           Solaris project support: no7 G/ V6 Q( H" Z8 I5 P
         Solaris privilege support: no
4 G- A# G, n$ p7 F2 w1 {0 e       IP address in $DISPLAY hack: no8 u; l9 d& @+ ?! L- n1 r6 E& [
           Translate v4 in v6 hack: yes) p+ F' W% I4 i4 D
                  BSD Auth support: no
9 l" L9 v$ O. M  p              Random number source: OpenSSL internal ONLY- L. \, a7 e* f) h& T2 c3 j
             Privsep sandbox style: seccomp_filter/ D% A3 n7 a" h7 X8 n8 |* [
                   PKCS#11 support: yes
& G" g( J" d( F2 v. M& ]+ X# _                  U2F/FIDO support: yes: c2 u8 e; `3 f4 q1 [& x8 y. }2 n

+ l; W% {+ J0 E, C* q+ h# [) \0 Q3 ^              Host: x86_64-pc-linux-gnu
' c3 X% [& A" \4 O          Compiler: cc -std=gnu11
% {6 j% R0 _! h- ]& i    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    B$ I3 R% ]/ B3 U' Z( S
Preprocessor flags: -I/usr/ssl  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE
& \, b/ Q. h* w( g6 Z0 \4 ~      Linker flags: -L/usr/ssl  -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fstack-protector-strong -pie - {( s( k: v/ i- l% B$ e
         Libraries: -ldl -lutil  -lresolv
' Q7 {3 ^1 t& ]# q     +for channels: -lcrypto  -lz
6 M. k9 H, z3 r         +for sshd: -lcrypt  -lpam
/ b- I6 }" S2 h; R& R
1 l. F- ]) w% d8 yPAM is enabled. You may need to install a PAM control file ) h4 k3 ]9 U* I8 {
for sshd, otherwise password authentication may fail. 4 a3 I/ Q! u) N- U  [
Example PAM control files can be found in the contrib/ 7 o2 C! L4 V: R2 b# z
subdirectory, g& [$ G" z/ d; O$ |0 e

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-8-22 15:00:07 | 显示全部楼层
报了错误6 ^; H/ x) ]$ K& s: M
! [; o# C; w. x+ Z0 O* w
configure: error: PAM headers not found
: w5 N  {1 I8 R# I% J解决方案- z# H2 R; r+ ]8 z; V
yum -y install pam-devel
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:46 , Processed in 0.017438 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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