哪种cpan安装程序是正确的? (CPAN.pm/CPANPLUS/cpanminus) [英] Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)
问题描述
有多个用于cpan模块的安装程序;我至少知道CPAN.pm(perl附带),CPANPLUS和cpanminus.
There are multiple installers for cpan modules available; I know of at least CPAN.pm (comes with perl,) CPANPLUS, and cpanminus.
三个之间有什么区别?
什么情况需要使用一种?
What situations call for using one over the other?
还有其他我应该知道的模块安装程序吗?
Are there other module installers I should know about?
推荐答案
CPAN.pm ( cpan
)是原始客户端.它随Perl一起提供,因此您已经拥有了它.它具有最多的功能.尽管实际上每个人都接受默认安装,但它具有许多配置选项以自定义其工作方式.它可以轻松地与 local :: lib 集成.
CPAN.pm (cpan
) is the original client. It comes with Perl, so you already have it. It has the most features. It has a lot of configuration options to customize the way it works, though virtually everyone accepts the default installation. It integrates easily with local::lib.
cpanminus (cpanm
)尝试进行零配置自动为大多数用户执行正确操作的客户端.它还可以在资源有限的系统(例如 VPS )上很好地运行.它不随Perl一起提供,但易于安装.它可以与 local :: lib 轻松集成.
cpanminus (cpanm
) is an attempt to make a zero-configuration client that automatically does the right thing for most users. It's also designed to run well on systems with limited resources (e.g. a VPS). It doesn't come with Perl, but it's easy to install. It integrates easily with local::lib.
它的最大局限性是缺乏配置.如果您想做一些不寻常的事情,它可能不支持.
Its biggest limitation is its lack of configuration. If you want to do something unusual, it may not support it.
CPANPLUS (cpanp
)是一种尝试使Perl程序可以使用的CPAN API使用,而不是您在命令行中使用的应用. cpanp
shell更像是一种概念证明,我不知道使用它的任何真正优势.
CPANPLUS (cpanp
) is an attempt to make a CPAN API that Perl programs can use, instead of an app that you use from the command line. The cpanp
shell is more of a proof-of-concept, and I don't know of any real advantages to using it.
总之,我建议cpan
或cpanm
.如果在配置cpan
时遇到问题,请尝试cpanm
.如果情况不正常,请尝试cpan
.
In summary, I'd recommend either cpan
or cpanm
. If you have trouble configuring cpan
, try cpanm
. If your situation is unusual, try cpan
.
这篇关于哪种cpan安装程序是正确的? (CPAN.pm/CPANPLUS/cpanminus)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!