首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Munin Postgres插件: DBD::Pg未找到

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

Server Fault用户
提问于 2014-06-17 10:24:45
回答 1查看 4.3K关注 0票数 11

我正在尝试激活Munin的Postgresql插件。当我运行munin-node-configure --suggest | grep postgres时,我得到以下输出:

代码语言:javascript
复制
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]

我在谷歌上搜索了一个答案,但对于如何解决这个问题,我还没有找到明确的答案。我以前从未使用过Perl模块(我们所有的软件都使用Python),所以我需要做些什么来安装这个依赖项呢?我正在使用Ubuntu10.04.4LTS。

EN

回答 1

Server Fault用户

回答已采纳

发布于 2014-06-17 10:33:55

许多perl模块将在通常的包层次结构中可用。对于Ubuntu,我相信您想要的包名为libdbd-pg-perl -所以请尝试使用以下方法安装:

代码语言:javascript
复制
sudo apt install libdbd-pg-perl

对于包层次结构中没有包含的包,可以使用perl模块CPAN来安装它们。作为根,运行

代码语言:javascript
复制
perl -MCPAN -eshell 

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

代码语言:javascript
复制
install DBD::PG 

若要安装模块及其所依赖的任何模块,请执行以下操作。

票数 15
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/605697

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档