运行“bucardo add database mybd”时出错

运行“bucardo add database mybd”时出错

这是消息错误:

install_driver(Pg) failed: Can't locate DBD/Pg.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at (eval 9) line 3.
Perhaps the DBD::Pg perl module hasn't been fully installed, or perhaps the capitalisation of 'Pg' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql. at /usr/local/bin/bucardo line 308

有人能帮我解决这个问题吗,谢谢

答案1

您应该安装 perl-DBD-Pg 包

# yum provides "*/DBD/Pg.pm"
Loaded plugins: fastestmirror, presto, security
Loading mirror speeds from cached hostfile
 * base: mirror.besthosting.ua
 * epel: mirror.yandex.ru
 * extras: mirror.besthosting.ua
 * ius: mirrors.ircam.fr
 * updates: mirror.besthosting.ua
perl-DBD-Pg-2.15.1-4.el6_3.x86_64 : A PostgreSQL interface for perl
Repo        : base
Matched from:
Filename    : /usr/lib64/perl5/vendor_perl/DBD/Pg.pm
Filename    : /usr/lib64/perl5/vendor_perl/Bundle/DBD/Pg.pm


# yum install perl-DBD-Pg

相关内容