Postgres DB已经安装。我不使用系统perl,我已经在"/srv/data203806/Migration/CPAN/localperl/bin".中安装了另一个perl当我试图安装时,它是在询问pg_config的路径:
[root1@frmrszvwb023 bin]# ./cpan install DBD::Pg
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 07 Mar 2014 03:53:02 GMT
Running install for module 'DBD::Pg'
Running make for T/TU/TURNSTEP/DBD-Pg-3.0.0.tar.gz
Checksum for /root/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-3.0.0.tar.gz ok
CPAN.pm: Building T/TU/TURNSTEP/DBD-Pg-3.0.0.tar.gz
Configuring DBD::Pg 3.0.0
Path to pg_config?
No POSTGRES_HOME defined, cannot find automatically
Warning: No success on command[/srv/data203806/MUXmh-Migration/CPAN/localperl/bin/perl Makefile.PL]
'YAML' not installed, will not store persistent state
TURNSTEP/DBD-Pg-3.0.0.tar.gz
/srv/data203806/MUXmh-Migration/CPAN/localperl/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites请帮助我安装DBD::Pg?如何获得通往pg_config的路径?
发布于 2014-07-29 14:16:25
您必须安装libpq-dev,例如在Ubuntu上:
sudo apt-get install libpq-dev发布于 2017-01-17 02:20:16
刚刚遇到了这个问题,在Ubuntu16.04 Xenial上,您要查找的包是:
apt-get install libdbd-pg-perl发布于 2016-04-02 08:17:04
在CentOS/RH上,您可以通过使用yum安装perl-DBD-Pg包来修复它。
sudo yum install perl-DBD-Pghttps://stackoverflow.com/questions/22264753
复制相似问题