我正在configurationcloudwatch自定义指标,这需要安装一些perl模块。
这里是我试图安装perl模块的命令。
yum install perl-Switch perl-Sys-Syslog perl-LWP-Protocol-http
我正在AWS上运行CentOs 6.5。 这是我得到的回应。
[root@ip-10-21-1-38 aws-scripts-mon]# yum install perl-Switch perl-Sys-Syslog perl- LWP-Protocol-http Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * base: mirror.es.its.nyu.edu * extras: mirror.ash.fastserv.com * updates: mirror.ash.fastserv.com Setting up Install Process No package perl-Switch available. No package perl-Sys-Syslog available. No package perl-LWP-Protocol-http available. Error: Nothing to do You have new mail in /var/spool/mail/root
请帮助安装perl模块。
这些不是OS包,而是为Perl提供的模块,大多数模块可以通过CPAN获得。
在这里看看有关如何做到这一点的细节。 这是一个相当简单的过程。
我使用这些命令通过CPAN安装这些Perl模块:
curl -L https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm | perl - App :: cpanminus cpanm LWP :: Protocol :: https cpanm交换机 cpanm Sys :: Syslog
我用cpanm,但我可以使用cpan命令。