Munin Postgres插件:未找到DBD :: Pg


10

我正在尝试为Munin激活一些Postgresql插件。运行时,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]

我已经在Google周围搜寻了答案,但没有找到任何有关如何解决此问题的明确答案。我以前从未使用过Perl模块(我们所有的软件都在Python中),那么我需要做些什么来安装此依赖项?我正在使用Ubuntu 10.04.4 LTS。

Answers:


14

在常规的包层次结构中,将有许多perl模块可用。对于Ubuntu,我相信您想要的软件包已被调用libdbd-pg-perl-因此请尝试使用以下命令进行安装:

sudo apt install libdbd-pg-perl

对于不包含在软件包层次结构中的软件包,可以使用perl模块CPAN进行安装。以root身份运行

perl -MCPAN -eshell 

并按照说明配置从哪些站点下载perl模块。配置完成后,键入

install DBD::PG 

安装模块及其依赖的任何模块。


5
太谢谢了!apt-get install libdbd-pg-perl解决了。
Benwad 2014年

apt-get install libdbd-pg-perl也为我工作!
Paul Calabro
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.