我正在尝试在 Windows 7 中安装缺少的 Perl 模块 ( Palm::PDB )。
我尝试了以下方法:
使用 Perl 包管理器:不幸的是,它似乎没有找到我想要的模块。
使用命令提示符在 Windows 中启动 CPAN shell:不幸的是,它显示以下错误。我已经安装了 MinGW 并设置了路径。
D:\Scripts>perl -MCPAN -e 'shell' install Palm::PDB
It looks like you don't have a C compiler and make utility installed. Trying
to install dmake and the MinGW gcc compiler using the Perl Package Manager.
This may take a few minutes...
ppm.bat install failed: Can't find any package that provides MinGW
It looks like the installation of dmake and MinGW has failed. You will not be
able to run Makefile commands or compile C extension code. Please check your
internet connection and your proxy settings!
Run Code Online (Sandbox Code Playgroud)有没有其他简单的方法可以在 Windows 上安装 Perl 模块?
您的 ActiveState Perl 安装有问题,因为它会自动为您安装 dmake 和 MinGW。
如果您安装了 dmake.exe,请尝试通过运行以下命令来安装 MinGW:
ppm install MinGW
perl Makefile.PL
dmake
dmake test
dmake install
Run Code Online (Sandbox Code Playgroud)
MinGW 和 dmake 也被安装到 C:\Perl\site\bin 中。确保此目录在您的 PATH 中(默认情况下由 ActivePerl 安装程序完成)。