Subject: | Unable to install DBD:Pg on Mac 10.9.1 |
Date: | Tue, 4 Feb 2014 18:04:06 +1030 |
To: | bug-DBD-Pg [...] rt.cpan.org |
From: | Simon Del Fabbro <sjdelfab [...] gmail.com> |
Tried first:
sudo perl -MCPAN -e 'install DBD::Pg'
then
cpan TURNSTEP/DBD-Pg-2.20.1_6.tar.gz
And finally
sudo cpan TURNSTEP/DBD-Pg-3.0.0.tar.gz
I have reinstalled DBI and moved the old perl install (version 5.12 and
folders /System/Library/Perl/5.12/ and /System/Library/Perl/Extras/5.12) to
a temp folder in the hope that the old version was causing a conflict.
At each attempt to install, I get the following result displayed below. I
am fairly new to using Perl, so let me know if you need any further
information.
Regards,
Simon
CPAN: Storable loaded ok (v2.34)
Reading '/Users/sjdelfab/.cpan/Metadata'
Database was generated on Tue, 04 Feb 2014 00:41:02 GMT
Running make for T/TU/TURNSTEP/DBD-Pg-3.0.0.tar.gz
CPAN: Digest::SHA loaded ok (v5.71)
CPAN: Compress::Zlib loaded ok (v2.048)
Checksum for
/Users/sjdelfab/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-3.0.0.tar.gz
ok
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4404)
CPAN: CPAN::Meta loaded ok (v2.120921)
CPAN: Module::CoreList loaded ok (v2.76)
CPAN.pm: Building T/TU/TURNSTEP/DBD-Pg-3.0.0.tar.gz
Configuring DBD::Pg 3.0.0
Path to pg_config? /Library/PostgreSQL/8.4/bin/pg_config
PostgreSQL version: 80419 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: /Library/PostgreSQL/8.4/include
POSTGRES_LIB: /Library/PostgreSQL/8.4/lib
OS: darwin
Multiple copies of Driver.xst found in:
/Library/Perl/5.16/darwin-thread-multi-2level/auto/DBI/
/System/Library/Perl/Extras/5.16/darwin-thread-multi-2level/auto/DBI/ at
Makefile.PL line 181.
Checking if your kit is complete...
Looks good
Multiple copies of Driver.xst found in:
/Library/Perl/5.16/darwin-thread-multi-2level/auto/DBI/
/System/Library/Perl/Extras/5.16/darwin-thread-multi-2level/auto/DBI/ at
Makefile.PL line 284.
Using DBI 1.631 (for perl 5.016002 on darwin-thread-multi-2level) installed
in /Library/Perl/5.16/darwin-thread-multi-2level/auto/DBI/
Writing Makefile for DBD::Pg
Writing MYMETA.yml and MYMETA.json
cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm
cp Pg.pm blib/lib/DBD/Pg.pm
/usr/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/"
/Library/Perl/5.16/darwin-thread-multi-2level/auto/DBI/Driver.xst > Pg.xsi
/usr/bin/perl /System/Library/Perl/5.16/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.16/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
cc -c -I/Library/PostgreSQL/8.4/include
-I/Library/Perl/5.16/darwin-thread-multi-2level/auto/DBI -arch x86_64 -arch
i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing
-fstack-protector -I/usr/local/include -DPGLIBVERSION=80419
-DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc
-Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc
-DVERSION=\"3.0.0\" -DXS_VERSION=\"3.0.0\"
"-I/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE" Pg.c
cc -c -I/Library/PostgreSQL/8.4/include
-I/Library/Perl/5.16/darwin-thread-multi-2level/auto/DBI -arch x86_64 -arch
i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing
-fstack-protector -I/usr/local/include -DPGLIBVERSION=80419
-DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc
-Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc
-DVERSION=\"3.0.0\" -DXS_VERSION=\"3.0.0\"
"-I/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE" dbdimp.c
dbdimp.c:414:14: warning: case value not in enumerated type
'ExecStatusType' [-Wswitch]
case PGRES_COPY_BOTH:
^
./Pg.h:45:25: note: expanded from macro 'PGRES_COPY_BOTH'
#define PGRES_COPY_BOTH 8
^
dbdimp.c:2936:10: warning: case value not in enumerated type
'ExecStatusType' [-Wswitch]
case PGRES_COPY_BOTH:
^
./Pg.h:45:25: note: expanded from macro 'PGRES_COPY_BOTH'
#define PGRES_COPY_BOTH 8
^
dbdimp.c:4859:8: warning: case value not in enumerated type
'ExecStatusType' [-Wswitch]
case PGRES_COPY_BOTH:
^
./Pg.h:45:25: note: expanded from macro 'PGRES_COPY_BOTH'
#define PGRES_COPY_BOTH 8
^
3 warnings generated.
dbdimp.c:414:14: warning: case value not in enumerated type
'ExecStatusType' [-Wswitch]
case PGRES_COPY_BOTH:
^
./Pg.h:45:25: note: expanded from macro 'PGRES_COPY_BOTH'
#define PGRES_COPY_BOTH 8
^
dbdimp.c:2936:10: warning: case value not in enumerated type
'ExecStatusType' [-Wswitch]
case PGRES_COPY_BOTH:
^
./Pg.h:45:25: note: expanded from macro 'PGRES_COPY_BOTH'
#define PGRES_COPY_BOTH 8
^
dbdimp.c:4859:8: warning: case value not in enumerated type
'ExecStatusType' [-Wswitch]
case PGRES_COPY_BOTH:
^
./Pg.h:45:25: note: expanded from macro 'PGRES_COPY_BOTH'
#define PGRES_COPY_BOTH 8
^
3 warnings generated.
cc -c -I/Library/PostgreSQL/8.4/include
-I/Library/Perl/5.16/darwin-thread-multi-2level/auto/DBI -arch x86_64 -arch
i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing
-fstack-protector -I/usr/local/include -DPGLIBVERSION=80419
-DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc
-Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc
-DVERSION=\"3.0.0\" -DXS_VERSION=\"3.0.0\"
"-I/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE" quote.c
cc -c -I/Library/PostgreSQL/8.4/include
-I/Library/Perl/5.16/darwin-thread-multi-2level/auto/DBI -arch x86_64 -arch
i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing
-fstack-protector -I/usr/local/include -DPGLIBVERSION=80419
-DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc
-Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc
-DVERSION=\"3.0.0\" -DXS_VERSION=\"3.0.0\"
"-I/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE" types.c
Running Mkbootstrap for DBD::Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/DBD/Pg/Pg.bundle
LD_RUN_PATH="/Library/PostgreSQL/8.4/lib:/usr/lib" cc
-mmacosx-version-min=10.9 -arch x86_64 -arch i386 -bundle -undefined
dynamic_lookup -L/usr/local/lib -fstack-protector Pg.o dbdimp.o quote.o
types.o -o blib/arch/auto/DBD/Pg/Pg.bundle \
-L/Library/PostgreSQL/8.4/lib -lpq -lm \
ld: warning: ignoring file /Library/PostgreSQL/8.4/lib/libpq.dylib, missing
required architecture x86_64 in file
/Library/PostgreSQL/8.4/lib/libpq.dylib (2 slices)
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/Bundle::DBD::Pg.3pm
Manifying blib/man3/DBD::Pg.3pm
TURNSTEP/DBD-Pg-3.0.0.tar.gz
/usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PGINITDB="/Library/PostgreSQL/8.4/bin/initdb" PERL_DL_NONLAZY=1
/usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/00_signature.t .... skipped: Set the environment variable TEST_SIGNATURE
to enable this test
t/00basic.t ......... 1/3
# Failed test 'use DBD::Pg;'
# at t/00basic.t line 17.
# Tried to use 'DBD::Pg'.
# Error: Can't load
'/Users/sjdelfab/.cpan/build/DBD-Pg-3.0.0-CyDBo5/blib/arch/auto/DBD/Pg/Pg.bundle'
for module DBD::Pg:
dlopen(/Users/sjdelfab/.cpan/build/DBD-Pg-3.0.0-CyDBo5/blib/arch/auto/DBD/Pg/Pg.bundle,
2): Symbol not found: _PQbackendPID
# Referenced from:
/Users/sjdelfab/.cpan/build/DBD-Pg-3.0.0-CyDBo5/blib/arch/auto/DBD/Pg/Pg.bundle
# Expected in: flat namespace
# in
/Users/sjdelfab/.cpan/build/DBD-Pg-3.0.0-CyDBo5/blib/arch/auto/DBD/Pg/Pg.bundle
at /System/Library/Perl/5.16/darwin-thread-multi-2level/DynaLoader.pm line
194.
# at (eval 8) line 2.
# Compilation failed in require at (eval 8) line 2.
# BEGIN failed--compilation aborted at (eval 8) line 2.
# CCFLAGS: q[-arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN
-fno-strict-aliasing -fstack-protector -I/usr/local/include
-DPGLIBVERSION=80419 -DPGDEFPORT=5432]
# INC: q[-I/Library/PostgreSQL/8.4/include
-I/Library/Perl/5.16/darwin-thread-multi-2level/auto/DBI]
Bailout called. Further testing stopped: Cannot continue without DBD::Pg
# LIBS: [q[-L/Library/PostgreSQL/8.4/lib -lpq -lm]]
FAILED--Further testing stopped: Cannot continue without DBD::Pg
make: *** [test_dynamic] Error 255
TURNSTEP/DBD-Pg-3.0.0.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TURNSTEP/DBD-Pg-3.0.0.tar.gz
Running make install
make test had returned bad status, won't install without force