Perl 扩展安装 - 无法运行 nmake
我正在尝试在 XAMPP 上使用 cpan 安装模块。我运行的是 Windows 7。
给出此提示后立即:
CPAN.pm: Going to build J/JE/JESSE/HTTP-Server-Simple-0.43.tar.gz
它给出提示“The required nmakeexecutable file is not找到并尝试获取它
之后,会出现一个弹出窗口,指出程序“??\c:\xampp\perl\bin\Nmake15.exe 由于与 64 位版本的 Windows 不兼容而无法运行。
我下载了 VC++ 并将 make.exe 从该安装复制到我的 perl/bin 中以替换原始的 make.exe。这仍然没有成功。知道如何让安装与 CPAN 配合使用吗?
I am trying to install a module using cpan on XAMPP. I am running Windows 7.
Immediately after this prompt is given:
CPAN.pm: Going to build J/JE/JESSE/HTTP-Server-Simple-0.43.tar.gz
It gives the prompt that "The required nmake executable file is not found, and attempts to fetch it.
After this, a popup window appears stating the program "??\c:\xampp\perl\bin\Nmake15.exe can not run due to incompatibility with 64 bit versions of windows.
I downloaded VC++ and copied the make.exe from that install into my perl/bin to replace the original make.exe. This still didn't work. Any idea how I can get installations to work with CPAN?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
XAMPP 附带了一个残缺的 Perl,主要是因为“Apache 朋友”是无能的白痴。我建议另外安装 Strawberry Perl,然后从 Perl 程序中使用该安装。 Strawberry 中的模块安装采用通常的直接方式。
XAMPP comes with a crippled Perl mostly due to the "Apache Friends" being clueless morons. I suggest installing Strawberry Perl additionally, then using that installation from your Perl programs. Module installation in Strawberry goes the usual straight way.
也有与海报相同的问题,也使用 XAMPP,并执行了以下操作以便能够在 Windows 7 - 64 位上安装模块
此外,使用此技巧,您不必在 Windows 中的 Perl 脚本上更改 Perl 的路径是为大多数 Linux 服务器制作的,即保留 #!/usr/bin/perl 并仅从 Windows 本地 XAMPP 中使用它们。
Had the same problem that the poster, using XAMPP too, and did the following to be able to install modules on windows 7 - 64 bits
Moreover, with this trick you don't have to change path to perl on your perl scripts in windows that were made for most linux servers, this is, keeping #!/usr/bin/perl and use them just from XAMPP locally in your windows box.
@daxim 说的是真的。使用 http://strawberryperl.com/releases.html 中的 Strawberry Perl 5.14。由于到目前为止已经实现了很多模块,因此您可以轻松地进行 ppm,而无需添加存储库。
What @daxim said was true. Use Strawberry Perl 5.14 from http://strawberryperl.com/releases.html. Since a lot of modules were implemented up to that point, you can easily ppm without any needs to add repos.