ben*_*wad 10 postgresql ubuntu munin perl
我正在尝试为 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]
Run Code Online (Sandbox Code Playgroud)
我在谷歌上搜索了答案,但没有找到任何关于如何解决这个问题的明确答案。我以前从未使用过 Perl 模块(我们所有的软件都是用 Python 编写的)所以我需要做什么来安装这个依赖项?我正在使用 Ubuntu 10.04.4 LTS。
Jen*_*y D 14
许多 perl 模块将在通常的包层次结构中可用。对于 Ubuntu,我相信你想要的包被称为libdbd-pg-perl- 所以尝试安装它:
sudo apt install libdbd-pg-perl
Run Code Online (Sandbox Code Playgroud)
对于包层次结构中未包含的包,您可以使用 perl 模块 CPAN 来安装它们。以 root 身份运行
perl -MCPAN -eshell
Run Code Online (Sandbox Code Playgroud)
并按照说明配置从哪些站点下载 perl 模块。配置完成后,输入
install DBD::PG
Run Code Online (Sandbox Code Playgroud)
安装模块及其依赖的任何模块。
| 归档时间: |
|
| 查看次数: |
4000 次 |
| 最近记录: |