Sie sind auf Seite 1von 7

cp Pg.pm blib/lib/DBD/Pg.

pm
/usr/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/" /System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI/Driver.xst > Pg.xsi
/usr/bin/perl /System/Library/Perl/5.18/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.18/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" Pg.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" dbdimp.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" quote.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" types.c
Running Mkbootstrap for DBD::Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/DBD/Pg/Pg.bundle

cp Pg.pm blib/lib/DBD/Pg.pm
/usr/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/" /System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI/Driver.xst > Pg.xsi

/usr/bin/perl /System/Library/Perl/5.18/ExtUtils/xsubpp -typemap


/System/Library/Perl/5.18/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" Pg.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" dbdimp.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" quote.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" types.c
Running Mkbootstrap for DBD::Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/DBD/Pg/Pg.bundle

cp Pg.pm blib/lib/DBD/Pg.pm
/usr/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/" /System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI/Driver.xst > Pg.xsi
/usr/bin/perl /System/Library/Perl/5.18/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.18/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF -

Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" Pg.c


cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" dbdimp.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" quote.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" types.c
Running Mkbootstrap for DBD::Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/DBD/Pg/Pg.bundle

$ for m in `sudo cat /etc/sysctl.conf`; do sudo sysctl $m; done


kern.sysv.shmmax: 1073741824 -> 1073741824
kern.sysv.shmall: 1073741824 -> 1073741824
$ sudo cpan
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.00)


Enter 'h' for help.

cpan[1]> install DBD::Pg


Reading '/Users/athotangare/.cpan/Metadata'
Database was generated on Fri, 23 Sep 2016 17:53:36 GMT
Running install for module 'DBD::Pg'
Running make for T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz
Checksum for /Users/athotangare/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz ok
Scanning cache /Users/athotangare/.cpan/build for sizes
............................................................................DONE

CPAN.pm: Building T/TU/TURNSTEP/DBD-Pg-3.5.3.tar.gz

Configuring DBD::Pg 3.5.3


Path to pg_config? /Applications/Postgres.app/Contents/MacOS/bin/pg_config
PostgreSQL version: 90204 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: /Applications/Postgres.app/Contents/MacOS/include
POSTGRES_LIB: /Applications/Postgres.app/Contents/MacOS/lib
OS: darwin
Checking if your kit is complete...
Looks good
Using DBI 1.631 (for perl 5.018002 on darwin-thread-multi-2level) installed in
/System/Library/Perl/Extras/5.18/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\(/" /System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI/Driver.xst > Pg.xsi
/usr/bin/perl /System/Library/Perl/5.18/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.18/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c

cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" Pg.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" dbdimp.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" quote.c
cc -c -I/Applications/Postgres.app/Contents/MacOS/include -I/System/Library/Perl/Extras/5.18/darwinthread-multi-2level/auto/DBI -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strictaliasing -fstack-protector -DPGLIBVERSION=90204 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc DVERSION=\"3.5.3\" -DXS_VERSION=\"3.5.3\" "-I/System/Library/Perl/5.18/darwin-thread-multi2level/CORE" types.c
Running Mkbootstrap for DBD::Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/DBD/Pg/Pg.bundle
LD_RUN_PATH="/Applications/Postgres.app/Contents/MacOS/lib:/usr/lib" cc -mmacosx-versionmin=10.11.3 -arch i386 -arch x86_64 -bundle -undefined dynamic_lookup -fstack-protector Pg.o
dbdimp.o quote.o types.o -o blib/arch/auto/DBD/Pg/Pg.bundle
\
-L/Applications/Postgres.app/Contents/MacOS/lib -lpq -lm

ld: warning: ignoring file /Applications/Postgres.app/Contents/MacOS/lib/libpq.dylib, file was built for


x86_64 which is not the architecture being linked (i386):
/Applications/Postgres.app/Contents/MacOS/lib/libpq.dylib
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::Pg.3pm
Manifying blib/man3/Bundle::DBD::Pg.3pm
TURNSTEP/DBD-Pg-3.5.3.tar.gz
/usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PGINITDB="/Applications/Postgres.app/Contents/MacOS/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/athotangare/.cpan/build/DBD-Pg-3.5.3iG93tK/blib/arch/auto/DBD/Pg/Pg.bundle' for module DBD::Pg:


dlopen(/Users/athotangare/.cpan/build/DBD-Pg-3.5.3-iG93tK/blib/arch/auto/DBD/Pg/Pg.bundle, 2):
Library not loaded: @loader_path/../lib/libpq.5.dylib
# Referenced from: /Users/athotangare/.cpan/build/DBD-Pg-3.5.3iG93tK/blib/arch/auto/DBD/Pg/Pg.bundle
# Reason: image not found at /System/Library/Perl/5.18/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 i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstackprotector -DPGLIBVERSION=90204 -DPGDEFPORT=5432]
# INC: q[-I/Applications/Postgres.app/Contents/MacOS/include I/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI]
# LIBS: [q[-L/Applications/Postgres.app/Contents/MacOS/lib -lpq -lm]]
Bailout called. Further testing stopped: Cannot continue without DBD::Pg
FAILED--Further testing stopped: Cannot continue without DBD::Pg

make: *** [test_dynamic] Error 255


TURNSTEP/DBD-Pg-3.5.3.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.5.3.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
TURNSTEP/DBD-Pg-3.5.3.tar.gz

cpan[2]>
```

: make_test NO