gpt4 book ai didi

perl - Linux:如何安装 DBD::Pg 模块?

转载 作者:行者123 更新时间:2023-11-29 11:15:09 30 4
gpt4 key购买 nike

Postgres 数据库已经安装。我没有使用系统 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 的路径?

最佳答案

刚遇到这个问题,在 Ubuntu 16.04 Xenial 上你要找的包是:

apt-get install libdbd-pg-perl

关于perl - Linux:如何安装 DBD::Pg 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22264753/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com