重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

标题: PostgreSQL编译报错:library 'pam' is required for PAM 解决方案 [打印本页]

作者: ZhangQi    时间: 2026-5-22 17:45
标题: PostgreSQL编译报错:library 'pam' is required for PAM 解决方案
编译 PostgreSQL 14.5 时报错,执行的 configure 命令如下所示:
[postgres@localhost postgresql-14.5]$ ./configure --prefix=/home/postgres/soft --with-openssl --with-pgport=5432 --with-tcl --with-perl  --with-libxml --with-libxslt --with-uuid=e2fs --with-pam

执行后一堆检查,最后直接报错终止,关键报错信息:
checking for pam_start in -lpam... no
configure: error: library 'pam' is required for PAM

55296a0b01136320d.png
登录/注册后可看大图