PostgreSQLの呼び出しは「Pg」なので指定を変更します。大文字と小文字も区別されます。
! 修正例
下記は、maia mailguardのDSNを設定しようとしています。しかし、DBIの指定にPostgreSQLを示す「Pg」ではなく、他の文字列を指定しているため、不具合が発生しました。他でも指定方法が似ているなら、同じように指定し直すと良い場合があります。
修正前
$dsn = "DBI:pg:dbname=maia;host=localhost;port=5432";
修正後
$dsn = "DBI:Pg:dbname=maia;host=localhost;port=5432";
! 不具合の例
maia mailguardの導入時に、間違えて指定した例です。
install_driver(pg) failed: Can't locate DBD/pg.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at (eval 5) 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, Pg, Proxy, Sponge, mysql.
at scripts/configtest.pl line 306
|