[pgsql-jp: 32760] DBD::Pgの導入についての質問
Hirosato Ishii
h_ishii @ po.ntts.co.jp
2004年 4月 13日 (火) 11:32:56 JST
いつもお世話になっております。
石井と申します。
PostgreSQLへのDBD::Pg導入作業を行っておりますが、判らない点があります。
【環境】
以下の構成となっています。
・OS: Redhat Enterprise Linux2.1
・PostgreSQL 7.4.2
・Perl 5.8.3
・DBI 1.42
・DBD::Pg 1.32
【構築手順】
・PostgreSQL7.4.2インストール
↓
・Perl5.8.3インストール
↓
・DBI1.42インストール
↓
・DBD::Pg1.32インストール ※1
【質問】
上記、構築手順の※1について、
DBD::1.32のmake testを実行すると、下記エラーが発生します。
いろいろと試行錯誤してみたのですが、エラーは解消しません。
解消方法をご存知の方がいらっしゃいましたら、教えて頂けない
でしょうか。
なお、READMEに記述されている以下の環境変数を設定し、make test
時に使用するDBとしてtestdbという名称のDBをCREATEして(中身はカラ)
実行しました。
POSTGRES_INCLUDE=/usr/local/pgsql/include
POSTGRES_LIB=/usr/local/pgsql/lib
POSTGRES_HOME=/usr/local/pgsql
DBI_DSN=testdb
DBI_USER=(postgreSQLのユーザ)
DBI_PASS=(DBI_USERのパスワード)
また、READMEに記述されているTest::Simpleについてもインストールして
みましたが結果は同様でした。
--エラー内容--
$ make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00basic...........ok
t/01connect.........ok 8/8#
# Program Version
# DBD::Pg 1.32
# PostgreSQL 7.4.2
# DBI 1.42
t/01connect.........ok
t/01constants.......ok
t/01setup...........ok 1/4NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index "dbd_pg_test_pkey" for table "dbd_pg_test"
t/01setup...........ok
t/02attribs.........ok 38/92# Failed test (t/02attribs.t at line 270)
# got: undef
# expected: '0'
t/02attribs.........ok 91/92# Looks like you failed 1 tests of 92.
LOG: unexpected EOF on client connection
t/02attribs.........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 39
Failed 1/92 tests, 98.91% okay
t/03dbmethod........ok 82/139NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index "dbd_pg_test1_pk" for table "dbd_pg_test1"
NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index "dbd_pg_test1_uc1"
for table "dbd_pg_test1"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"dbd_pg_test2_pkey" for table "dbd_pg_test2"
t/03dbmethod........ok 93/139NOTICE: ALTER TABLE / ADD UNIQUE will create
implicit index "dbd_pg_test1_uc2" for table "dbd_pg_test1"
t/03dbmethod........ok
t/03smethod.........ok
t/04misc............ok
t/05arrays..........ok
15/17 skipped: Array support not implemented
t/12placeholders....ok
t/99_pod............skipped
all skipped: Test::Pod 0.95 required for testing POD
t/99cleanup.........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/02attribs.t 1 256 92 1 1.09% 39
1 test and 15 subtests skipped.
Failed 1/12 test scripts, 91.67% okay. 1/348 subtests failed, 99.71% okay.
make: *** [test_dynamic] エラー 29
----
以上、よろしくお願いいたします。
pgsql-jp メーリングリストの案内