Linux通过cpanm安装Perl模块

Posted dbamonkey

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux通过cpanm安装Perl模块相关的知识,希望对你有一定的参考价值。

[root@wallet01 ~]# yum install -y perl-App-cpanminus.noarch

[root@wallet01 ~]# cpanm Test::Simple  
--> Working on Test::More
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.302183.tar.gz ... OK
Configuring Test-Simple-1.302183 ... OK
Building and testing Test-Simple-1.302183 ... OK
Successfully installed Test-Simple-1.302183
1 distribution installed

[root@wallet01 ~]# cpanm ExtUtils::MakeMaker                      
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.56.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.56 ... OK
Building and testing ExtUtils-MakeMaker-7.56 ... OK
Successfully installed ExtUtils-MakeMaker-7.56 (upgraded from 6.68)
1 distribution installed

[root@wallet01 ~]# cpanm Time::HiRes
--> Working on Time::HiRes
Fetching http://www.cpan.org/authors/id/A/AT/ATOOMIC/Time-HiRes-1.9764.tar.gz ... OK
Configuring Time-HiRes-1.9764 ... OK
Building and testing Time-HiRes-1.9764 ... OK
Successfully installed Time-HiRes-1.9764 (upgraded from 1.9725)
1 distribution installed

 

以上是关于Linux通过cpanm安装Perl模块的主要内容,如果未能解决你的问题,请参考以下文章

Perl 基础笔记: 使用 cpanm 安装 Perl 模块

perl模块安装——cpanm

perl:cpanm安装方式的一种取代方法

在主目录中安装perl模块时出现问题

Cpanm Ansible with List

cpan 和 cpanm 有啥区别? [复制]