【发布时间】:2020-12-09 05:50:03
【问题描述】:
尝试在 Windows 10 机器上安装 PAM 模块。目前运气不太好。不知道为什么我会收到这个错误。
cpan> install Authen::PAM
Running install for module 'Authen::PAM'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\N\NI\NIKIP\Authen-PAM-0.16.tar.gz ok
Configuring N/NI/NIKIP/Authen-PAM-0.16.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
'.' is not recognized as an internal or external command,
operable program or batch file.
Error in configuring the Authen::PAM module.
Warning: No success on command[C:\Strawberry\perl\bin\perl.exe Makefile.PL]
NIKIP/Authen-PAM-0.16.tar.gz
C:\Strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK
Stopping: 'install' failed for 'Authen::PAM'.
Failed during this command:
NIKIP/Authen-PAM-0.16.tar.gz : writemakefile NO 'C:\Strawberry\perl\bin\perl.exe Makefile.PL' returned status 512
【问题讨论】:
-
.是 Unix/Linux 系统上的内置 shell 命令。好像这个模块不能安装在 Windows 上。虽然您可以让 Bash 在 Windows 上运行,但这可能无济于事,因为 PAM 库无论如何都不支持 Windows。 -
@amon,它实际上使用的是
./confgiure,而不是.。 Windows 认为这意味着程序.带有参数/configure。用system('"./configure"')、system(".\\configure")或system("configure")替换system("./configure")将不起作用。它们都会按预期执行包含的configure脚本,但它是 Bourne shell 脚本,所以它不起作用。
标签: windows perl cpan pam strawberry-perl