我试图激活一些Munin的Postgresql插件。 当我运行munin-node-configure --suggest | grep postgres munin-node-configure --suggest | grep postgres我得到以下输出:
postgres_bgwriter | no | no [DBD::Pg not found, and cannot do psql yet] postgres_cache_ | no | no [DBD::Pg not found, and cannot do psql yet] postgres_checkpoints | no | no [DBD::Pg not found, and cannot do psql yet] postgres_connections_ | no | no [DBD::Pg not found, and cannot do psql yet] postgres_connections_db | no | no [DBD::Pg not found, and cannot do psql yet] postgres_locks_ | no | no [DBD::Pg not found, and cannot do psql yet] postgres_querylength_ | no | no [DBD::Pg not found, and cannot do psql yet] postgres_scans_ | no | no [DBD::Pg not found, and cannot do psql yet] postgres_size_ | no | no [DBD::Pg not found, and cannot do psql yet] postgres_transactions_ | no | no [DBD::Pg not found, and cannot do psql yet]
我已经search了一个答案,但还没有find任何明确的答案,如何解决这个问题。 我以前从来没有使用Perl模块(我们所有的软件都是Python),所以我需要做什么来安装这个依赖关系? 我使用Ubuntu 10.04.4 LTS。
许多perl模块将在通常的包层次结构中可用。 对于Ubuntu,我相信你想要的软件包叫做libdbd-pg-perl – 所以试着安装它。
对于软件包层次结构中未包含的软件包,可以使用perl模块CPAN进行安装。 以root身份运行
perl -MCPAN -eshell
并按照说明来configuration从哪里下载Perl模块。 一旦configuration完成,键入
install DBD::PG
安装模块和它依赖的任何模块。