“ppm.bat 安装失败:找不到任何提供 MinGW 的包" [英] “ppm.bat install failed: Can't find any package that provides MinGW”

查看:151
本文介绍了“ppm.bat 安装失败:找不到任何提供 MinGW 的包"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Windows 7 中安装缺少的 Perl 模块 (Palm::PDB).

I am trying to install a missing Perl module (Palm::PDB) in Windows 7.

我尝试了以下方法:

  1. 使用 Perl 包管理器:不幸的是,它似乎没有找到我想要的模块.

  1. Using Perl Package Manager: unfortunately it does not seem to find the module I want.

使用命令提示符在 Windows 中启动 CPAN shell:不幸的是,它显示以下错误.我已经安装了 MinGW 并设置了路径.

Starting a CPAN shell in Windows using the command prompt: unfortunately it shows the following error. I have installed MinGW and also have set the path.

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!

有没有其他简单的方法可以在 Windows 上安装 Perl 模块?

Is there any other easy way to install Perl modules on Windows?

推荐答案

您的 ActiveState Perl 安装出现问题,因为它会自动为您安装 dmake 和 MinGW.

Something is wrong with your ActiveState Perl install because it will automatically install dmake and MinGW for you.

如果您安装了 dmake.exe,请尝试通过运行以下命令来安装 MinGW:

If you have dmake.exe installed try to install MinGW by running these commands:

ppm install MinGW
perl Makefile.PL
dmake
dmake test
dmake install

MinGW 和 dmake 也被安装到 C:\Perl\site\bin.确保此目录位于您的 PATH 中(默认情况下由 ActivePerl 安装程序完成).

Also MinGW and dmake are being installed into C:\Perl\site\bin. Make sure this directory is on your PATH (done by default by the ActivePerl installer).

这篇关于“ppm.bat 安装失败:找不到任何提供 MinGW 的包"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆