cpan cpanp cpanm

来源:互联网 发布:剑网三 坐标数据导入 编辑:程序博客网 时间:2024/04/28 18:34

CPANComprehensive Perl Archive Network)

中文译为:“Perl综合典藏网”,“Perl综合档案网”或者“Perl程序库”。


它包含了极多用Perl写成的软体和其文件。

CPAN是它是一个巨大的Perl软件收藏库,收集了大量有用的Perl模块(modules)及其相关的文件。


CPAN亦是一支Perl程式的名字,其作用是让使用者容易从CPAN下载、安装、更新及管理其他在CPAN上的Perl程式。


CPAN的成功引来很多其他程式语言社群的模仿。



相关:

1 当你不知道怎么有cpan这个东西的时候,那你肯定不会去关于它的东西。

2 当你偶尔看到:某某处有某些东西或者某些模块需要cpan安装的时候,你也许有点好奇:cpan是个什么东西,好了,你search后就可能知道它的确是个玩意了。

3 虽然你知道了什么是cpan了,但是却不知道怎么使用它安装东西的时候,你可以各种搜索,希望你能搜到:

如果安装一个模块(

How to install modules 

),

如何知道它能不能安装一个模块(也就是说:它那儿到底有没有这个模块(

How to find modules 

)),这些东东网上都是有的,希望你能搜索到哦。


cpanm fromApp::cpanminus is a script to get, unpack, build and install modules from CPAN. It's dependency free (can bootstrap itself) and requires zero configuration (install instructions). 

local::lib enables you to install modules into a specified directory, without requiring root or administrator access. 

cpan fromCPAN has been distributed with Perl since 1997 (5.004). It has many more options thancpanm, it is also much more verbose. 

cpanp fromCPANPLUS has been distributed with Perl since 2007 (5.009). This offers even more options thancpanm or cpan


提示:

如何安装cpanm:直接在linux Terminal中输入cpanm看会不会出什么提示,还好,它真出提示了。

wayne@ubuntu:~/Downloads/lxr-1.2.0$ cpanm
The program 'cpanm' is currently not installed.  You can install it by typing:

sudo apt-get install cpanminus
wayne@ubuntu:~/Downloads/lxr-1.2.0$

没准安装其它玩意也会有这提示哦,脑子灵活点吧。