如何在Cygwin中安装Perl库? [英] How do I install Perl libraries in Cygwin?
问题描述
我是一个C / C ++ / Java / Unix极客,但现在我必须在Windows中编写一个Perl程序。所以我有Cygwin,安装了EPIC的Eclipse和简单的测试程序运行。我没有一个Unix机器可用,我可以运行Eclipse。
I'm a C/C++/Java/Unix geek by trade, but now I have to write a Perl program in Windows. So I've got Cygwin, Eclipse with EPIC installed, and simple test programs run. I do not have a Unix machine available to me that I can run Eclipse on.
但我需要使用 Net :: TCP :: Server
,我不知道如何安装它。它似乎不是Cygwin Perl安装的一部分,我不想花5天时间学习Perl和CPAN和Perl配置的世界。我只想写我的程序。
But I need to use Net::TCP::Server
and I can't figure out how to install it. It doesn't appear to be part of the Cygwin Perl install, and I don't want to spend 5 days learning the world of Perl and CPAN and Perl configuration. I just want to write my program.
在Cygwin中安装Perl模块的任何简单方法?我想像 apt-get install
会很好,但我预计太多了希望。
Any simple ways of installing a Perl module in Cygwin? I'm thinking something like apt-get install
would be nice, but I expect that's too much to hope for.
感谢
推荐答案
$ perl -MCPAN -e shell
cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.
cpan[1]> install Net::TCP::Server
c> o conf 命令。
And it's instructive to list the configuration with the o conf
command.
这篇关于如何在Cygwin中安装Perl库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!