===============================================
Apologies in advance for the long post, but I figured it would help forestall any of the obvious questions.
I've been trying to install DBD::Pg for Postgres.
Perl 5.8.0 is installed and working properly.
Postgres 7.2.1 is installed and working properly.
DBI installed without any problems.
I have set the environment variables as follows:
export POSTGRES_INCLUDE="/usr/local/pgsql/include"
export POSTGRES_LIB="/usr/local/pgsql/lib/libpq.so"
Problem:
DBD::Pg fails to install with an "Undefined symbols" error.
Can anyone shed some light?
Thanks.
Kurt
===============================================
bash-2.05a$ perl Makefile.PL
Configuring Pg
Remember to actually read the README file !
OS: darwin
Using DBI 1.32 installed in /Library/Perl/darwin/auto/DBI
Note (probably harmless): No library found for -lpq
Writing Makefile for DBD::Pg
bash-2.05a$ make
cc -c -I/usr/local/pgsql/include -I/Library/Perl/darwin/auto/DBI -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -O3 -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" "-I/Library/Perl/darwin/CORE" Pg.c
cc -c -I/usr/local/pgsql/include -I/Library/Perl/darwin/auto/DBI -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -O3 -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" "-I/Library/Perl/darwin/CORE" dbdimp.c
Running Mkbootstrap for DBD::Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/DBD/Pg/Pg.bundle
LD_RUN_PATH="" cc -flat_namespace -bundle -undefined suppress Pg.o dbdimp.o -o blib/arch/auto/DBD/Pg/Pg.bundle
chmod 755 blib/arch/auto/DBD/Pg/Pg.bundle
cp Pg.bs blib/arch/auto/DBD/Pg/Pg.bs
chmod 644 blib/arch/auto/DBD/Pg/Pg.bs
Manifying blib/man3/DBD::dbd-pg.3
Manifying blib/man3/DBD::Pg.3
bash-2.05a$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00basic...........dyld: /usr/bin/perl Undefined symbols:
_PQclear
_PQcmdStatus
_PQcmdTuples
_PQconnectdb
_PQconsumeInput
_PQendcopy
_PQerrorMessage
_PQexec
_PQfinish
_PQfname
_PQfsize
_PQftype
_PQgetisnull
_PQgetline
_PQgetvalue
_PQnfields
_PQnotifies
_PQntuples
_PQoidStatus
_PQputline
_PQresultStatus
_PQsocket
_PQstatus
_lo_close
_lo_creat
_lo_export
_lo_import
_lo_lseek
_lo_open
_lo_read
_lo_tell
_lo_unlink
_lo_write
t/00basic...........dubious
Test returned status 0 (wstat 5, 0x5)
t/01connect.........skipped
all skipped: cannot test without DB info
t/01constants.......dyld: /usr/bin/perl Undefined symbols:
_PQclear
_PQcmdStatus
_PQcmdTuples
_PQconnectdb
_PQconsumeInput
_PQendcopy
_PQerrorMessage
_PQexec
_PQfinish
_PQfname
_PQfsize
_PQftype
_PQgetisnull
_PQgetline
_PQgetvalue
_PQnfields
_PQnotifies
_PQntuples
_PQoidStatus
_PQputline
_PQresultStatus
_PQsocket
_PQstatus
_lo_close
_lo_creat
_lo_export
_lo_import
_lo_lseek
_lo_open
_lo_read
_lo_tell
_lo_unlink
_lo_write
t/01constants.......dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-20
Failed 20/20 tests, 0.00% okay
t/01setup...........skipped
all skipped: cannot test without DB info
t/02prepare.........skipped
all skipped: cannot test without DB info
t/03bind............skipped
all skipped: cannot test without DB info
t/04execute.........skipped
all skipped: cannot test without DB info
t/05fetch...........skipped
all skipped: cannot test without DB info
t/06disconnect......skipped
all skipped: cannot test without DB info
t/07reuse...........skipped
all skipped: cannot test without DB info
t/08txn.............skipped
all skipped: cannot test without DB info
t/09autocommit......skipped
all skipped: cannot test without DB info
t/11quoting.........skipped
all skipped: cannot test without DB info
t/12placeholders....skipped
all skipped: cannot test without DB info
t/13pgtype..........skipped
all skipped: cannot test without DB info
t/15funct...........skipped
all skipped: cannot test without DB info
t/99cleanup.........skipped
all skipped: cannot test without DB info
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------ -------
t/00basic.t 0 5 ?? ?? % ??
t/01constants.t 0 5 20 20 100.00% 1-20
15 tests skipped.
Failed 2/17 test scripts, 88.24% okay. 20/20 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2
bash-2.05a$
===============================================
- Re: DBD::Pg won't install kurt
- Re: DBD::Pg won't install David Wheeler
- Re: DBD::Pg won't install David H. Adler
- DBD::Pg won't install kurt