如何在Windows上使用草莓编译Perl模块? [英] How do I compile a Perl module on Windows with Strawberry?
问题描述
这是一个公开的讨论和结论,而不是一个真正的问题,希望它可以帮助某人某时。
This is more an open discussion and a conclusion than a real question, hoping it can help someone sometime.
我在寻找如何使Perl模块互联网断开服务器(否则答案很简单:使用 cpan
),所以我唯一的选择是手动编译从互联网(CPAN或其他)下载的模块
I was looking on how to make Perl module on an Internet disconnected server (otherwise the answer is quite simple: use cpan
), so the only option I have is to manually compile the modules downloaded from the Internet (CPAN or others) directly on the server.
问题是,在标准的Windows服务器上,没有编译器。
The problem was that, on a standard Windows server, there is no compiler. So how do I make the modules?
推荐答案
如果你看一下你的草莓Perl安装文件夹,你会看到一些有用的实用程序,包括编译器 cpp.exe
, c ++。exe
, gcc.exe
并使公用程序 gmake.exe
和 dmake.exe
。
If you look in your Strawberry Perl installation folder you will see a number of useful utilities, including the compilers cpp.exe
, c++.exe
, gcc.exe
and make utilities gmake.exe
and dmake.exe
.
dmake
和 gcc
共同支持使用 cpan
在您的安装,并且 cpanm
也可用。
dmake
and gcc
together support the use of cpan
on your installation, and cpanm
is available as well.
安装模块,请查看 perlmodinstall
For information on the general process of installing a module, take a look at perlmodinstall
这篇关于如何在Windows上使用草莓编译Perl模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!