簡體   English   中英

CPAN“。” 不被識別為內部或外部命令 - Windows 10

[英]CPAN "." is not recognized as an internal or external command - Windows 10

嘗試在 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

該模塊不支持 Windows。

具體來說,該錯誤是由於模塊的安裝程序與 Windows 不兼容導致的。它試圖執行 Bourne shell 命令來調用 Bourne shell 腳本,而您的機器上沒有這樣的 shell。 這樣的shell就算能安裝也無濟於事。 該腳本僅適用於 unixy 系統。 [1]


  1. 有多種方法可以在 Windows 上創建 unixy 環境。虛擬環境,例如 Windows 子系統為 Linux (WSL) 創建的虛擬環境,Cygwin 和 MSYS 可能支持該模塊,但必須使用這些環境中的perl

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM