在 ubuntu 中使用 cpan 安装 Authen::Simple::PAM 模块失败

在 ubuntu 中使用 cpan 安装 Authen::Simple::PAM 模块失败

我正在尝试使用 cpan 从 ubuntu 终端安装 Authen::Simple::PAM 模块,但出现如下所示的错误(请注意其他模块安装完美)

Checking if your kit is complete...
Looks good
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for pam header files in... no
configure: error: cannot find the pam_appl.h file
Error in configuring the Authen::PAM module.   
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
NIKIP/Authen-PAM-0.16.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites

答案1

当 CPAN 包也可用的在 Ubuntu 存储库中,我会安装 Ubuntu 版本,特别是当您遇到构建问题时:

sudo apt-get install libauthen-simple-pam-perl  

请注意,CPAN 和 Ubuntu 版本相同 (0.2)。

相关内容