哪个 cpan 安装程序是正确的?(CPAN.pm/CPANPLUS/cpanminus) [英] Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)

查看:20
本文介绍了哪个 cpan 安装程序是正确的?(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) 是尝试制作 CPANPerl 程序可以使用的 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.

总而言之,我推荐 cpancpanm.如果您在配置 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屋!

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