简体   繁体   English

如果未安装postgres,如何安装DBD :: Pg?

[英]How can I install DBD::Pg if postgres is not installed?

I have a separate servers running with postgres and Nagios. 我有一个单独的服务器与postgres和Nagios一起运行。 I want to use " psql_replication_check.pl " with nagios to monitor the postgres replication status. 我想使用带有nagios的“ psql_replication_check.pl ”来监视postgres复制状态。 This check script requires DBD::Pg module to connect to database. 此检查脚本需要DBD :: Pg模块才能连接到数据库。 Installation of DBD::Pg asking for the path of pg_config file. 安装DBD :: Pg请求pg_config文件的路径。

#perl Makefile.PL 
Configuring DBD::Pg 2.17.1
Path to pg_config? 

I don't have permissions to install postgres on Nagios machine. 我没有权限在Nagios机器上安装postgres。 Is there anyone who has fixed this issue before. 有没有人以前解决过这个问题。

I have CentOS 5.4 on both systems. 我在两个系统上都有CentOS 5.4。

What you need in order to install DBD::Pg isn't all of PostgreSQL, but only the C client library, libpq . 安装DBD::Pg所需要的不仅仅是PostgreSQL,而只是C客户端库libpq The package containing the header files for that will also include the pg_config program. 包含头文件的包也将包含pg_config程序。 On most Debian-based systems, that package is called libpq-dev - other vendors will have other names for it. 在大多数基于Debian的系统上,该软件包称为libpq-dev - 其他供应商将拥有其他名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM