Perl

“無法安裝 Nagios::Plugin,不知道是什麼。”

  • March 22, 2017

幾個月/幾週前,我使用此命令在多個伺服器上安裝 Nagios::Plugins:

perl -MCPAN -e 'install Nagios::Plugin'

現在我收到此錯誤消息:

Reading '/root/.cpan/Metadata'
Database was generated on Mon, 27 Apr 2015 00:29:02 GMT
Warning: Cannot install Nagios::Plugin, don't know what it is.

據我所知,該模組仍在 CPAN 中:http ://search.cpan.org/dist/Nagios-Plugin/

怎麼了?

Nagios::Plugins因商標原因更名不再索引。現在你必須安裝Monitoring::Plugins``cpan``Nagios::Plugins``Monitoring::Plugin

perl -MCPAN -e 'install Monitoring::Plugin'

或者您可以通過 cpanm 安裝它。首先安裝cpanm:

curl -L http://cpanmin.us | perl - --sudo App::cpanminus

然後安裝模組

cpanm Monitoring::Plugin

進一步閱讀

引用自:https://unix.stackexchange.com/questions/199155