易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 413|回复: 2
收起左侧

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

[复制链接]
发表于 2023-8-22 15:00:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
编译openssh报错+ r" p7 b4 O0 g4 j6 I: O" o! i- l
configure: error: PAM headers not found
. X7 P; J% J, K1 rchecking for arc4random_stir... no
5 d, g9 O, O+ R' y0 G1 n% ~+ z( a1 Hchecking for arc4random_uniform... no3 B8 [, i1 P/ A3 w# o2 `
checking whether OpenSSL's PRNG is internally seeded... yes' L+ ~# D: a/ m" m4 V) C# W
checking for ia_openinfo in -liaf... no! t+ B  A( H$ M' v2 ?$ G3 G
checking for crypt in -lcrypt... yes
, m0 j3 \* d8 k' Q* e. Bchecking for crypt... yes$ X1 M* U: R% G2 o  M( ^) J6 X
configure: error: PAM headers not found8 A  h3 d7 K9 `

& a) }" F. d: Z* C$ \4 ^# L+ D4 l$ ]8 y+ l
* y4 G6 s& t. [$ f
解决办法:
4 `* A+ K' p! o5 Hyum install gcc zlib-devel pam-devel libselinux-devel zlib-devel openssl-devel -y8 z8 _: P9 s& ^" E4 ?
6 J) d" [% j6 h
安装时openssl-devel会影响其他安装包安装过程,建议去掉使用下面的方式的:

4 s" m. u3 X' Q- X* L
yum install gcc zlib-devel pam-devel libselinux-devel zlib-devel -y
* o8 ?% O/ O) I# D# x9 z% g) j5 f! d+ ^4 ]# _% H
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
  q$ s. s* [4 x# D3 O
) n$ g( {2 b: i/ G( Q. D

6 }$ d( m7 S9 C: n
& y1 |  @% K0 Y, b+ b  j8 u# V! q, B

  [) I0 i! z' |6 ~& q6 v( b* F7 `0 P, g; }( j: b

: b; s# a) o' w3 f  w) v) e9 A! ^; e% Q% }) l
 楼主| 发表于 2023-8-22 15:00:06 | 显示全部楼层
yum install gcc zlib-devel pam-devel libselinux-devel zlib-devel -y3 v( L% m6 U  A1 X* H2 ]
4 {8 e7 ~* a8 d2 q) e7 P! ^4 S
configure: WARNING: unrecognized options: --with-md5-passwords
- D5 c2 }8 z. {5 }; _0 {
/ M3 |1 A  D# h' A4 w, {  a( }1 O1 AOpenSSH has been configured with the following options:7 ~& X5 Q' K% t( W* A
                     User binaries: /usr/bin
, z* \' \% M9 t$ E9 S                   System binaries: /usr/sbin- Q7 u  e) \! i) w
               Configuration files: /etc/ssh  U8 Q2 J9 G$ r# p/ i: a: H, q0 J% D
                   Askpass program: /usr/libexec/ssh-askpass
+ H& a+ ?1 w3 o: X# Q                      Manual pages: /usr/share/man/manX& m. m/ M# K, K4 z( E
                          PID file: /var/run" S9 J& o5 c8 U/ T- j! m
  Privilege separation chroot path: /var/empty$ D( Z, ^, G8 G! q* u2 C
            sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin
* n! s, \3 C$ N! F( p) j8 w                    Manpage format: doc% _& W/ `0 ^9 C: e  L4 |
                       PAM support: yes
, z( y$ z' Z6 R* c* k* F7 U                   OSF SIA support: no  C- q* v" H9 ~+ \0 [
                 KerberosV support: no$ n4 |8 r3 R# L3 D
                   SELinux support: no
/ o$ }( O% `: x; H1 p/ `                   libedit support: no
# m$ l+ b6 u; r6 o2 U# i3 z                   libldns support: no  D1 M9 ?4 N3 F
  Solaris process contract support: no, W7 z/ _# @; ]8 y6 t" s5 ^
           Solaris project support: no
% [8 h. S/ j; K: i+ i         Solaris privilege support: no
4 C& y: d( V8 F% a       IP address in $DISPLAY hack: no
4 o3 n) N$ j* R' y! Z/ j           Translate v4 in v6 hack: yes
9 R, b% X  g5 N7 |" `) O; C                  BSD Auth support: no
' O; i: T' E, W9 ]- n/ E2 ~              Random number source: OpenSSL internal ONLY% Z" L7 w/ v) H" r0 _
             Privsep sandbox style: seccomp_filter1 `2 t8 H$ \6 [
                   PKCS#11 support: yes# ]# z0 o6 L# w1 V% k6 V
                  U2F/FIDO support: yes  [& Q" Q: k& U

7 R  y6 L. |9 C7 x              Host: x86_64-pc-linux-gnu  g+ a7 u' F4 F4 {: \, M2 L
          Compiler: cc -std=gnu118 j6 c9 f0 u$ p8 \
    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  
, H' q' z" m0 ~# s6 Y, T" HPreprocessor flags: -I/usr/ssl  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE
, W" B, h, P! R      Linker flags: -L/usr/ssl  -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fstack-protector-strong -pie
4 W8 {# Z: I$ X/ J# E' I         Libraries: -ldl -lutil  -lresolv3 S# z) g: a2 I  b" L1 C9 _
     +for channels: -lcrypto  -lz) U+ j& I' a2 v0 C
         +for sshd: -lcrypt  -lpam# O$ [% O9 k* q. D- l% O1 e

" k# z5 Y8 W# e% z7 K0 o+ ePAM is enabled. You may need to install a PAM control file
. e5 X5 w; o2 U$ M( n1 Dfor sshd, otherwise password authentication may fail.
; @7 C" o# _! ^* H9 ^Example PAM control files can be found in the contrib/
# e% z( \2 X6 V: R( \- V7 Q# j" Dsubdirectory
6 n; P  W4 R' h
 楼主| 发表于 2023-8-22 15:00:07 | 显示全部楼层
报了错误
# u. K" C+ A  ^) l+ d# d3 z1 P- T9 u6 b
configure: error: PAM headers not found
7 x; B- W) w, E1 G& g解决方案
) W5 d4 q& e  V: Z6 c# o# \yum -y install pam-devel
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:31 , Processed in 0.052179 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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