I have had a hell of a time trying to install the dbd:pg module.
Don¹t have a lot of experience installing perl modules, so I beg your
patience and forgiveness if this turns out to be a stupid problem.
Below is the text returned by my last attempt at installing via the bundle.
Sorry for the size of the cut and paste:
> Nicholas-Landess-Computer:/volumes/wonder/downloads/DBD-Pg-2.7.2 nick$ perl
> -MCPAN -e 'install Bundle::DBD::Pg'
> CPAN: Storable loaded ok (v2.13)
> Going to read /Users/nick/.cpan/Metadata
> Database was generated on Thu, 29 May 2008 19:06:49 GMT
> DBI is up to date (1.604).
> Running install for module 'DBD::Pg'
> CPAN: Data::Dumper loaded ok (v2.121_02)
> 'YAML' not installed, falling back to Data::Dumper and Storable to read prefs
> '/Users/nick/.cpan/prefs'
> Running make for T/TU/TURNSTEP/DBD-Pg-2.7.2.tar.gz
>
> CPAN: checksum security checks disabled because Digest::SHA not installed.
> Please consider installing the Digest::SHA module.
>
> CPAN: Time::HiRes loaded ok (v1.65)
> CPAN: Compress::Zlib loaded ok (v1.33)
> DBD-Pg-2.7.2/
> DBD-Pg-2.7.2/t/
> DBD-Pg-2.7.2/t/08async.t
> DBD-Pg-2.7.2/t/09arrays.t
> DBD-Pg-2.7.2/t/01constants.t
> DBD-Pg-2.7.2/t/04misc.t
> DBD-Pg-2.7.2/t/20savepoints.t
> DBD-Pg-2.7.2/t/lib/
> DBD-Pg-2.7.2/t/lib/App/
> DBD-Pg-2.7.2/t/lib/App/Info/
> DBD-Pg-2.7.2/t/lib/App/Info/Request.pm
> DBD-Pg-2.7.2/t/lib/App/Info/RDBMS.pm
> DBD-Pg-2.7.2/t/lib/App/Info/Handler/
> DBD-Pg-2.7.2/t/lib/App/Info/Handler/Prompt.pm
> DBD-Pg-2.7.2/t/lib/App/Info/Util.pm
> DBD-Pg-2.7.2/t/lib/App/Info/Handler.pm
> DBD-Pg-2.7.2/t/lib/App/Info/RDBMS/
> DBD-Pg-2.7.2/t/lib/App/Info/RDBMS/PostgreSQL.pm
> DBD-Pg-2.7.2/t/lib/App/Info.pm
> DBD-Pg-2.7.2/t/06bytea.t
> DBD-Pg-2.7.2/t/00basic.t
> DBD-Pg-2.7.2/t/12placeholders.t
> DBD-Pg-2.7.2/t/99_spellcheck.t
> DBD-Pg-2.7.2/t/00-signature.t
> DBD-Pg-2.7.2/t/dbdpg_test_setup.pl
> DBD-Pg-2.7.2/t/99_yaml.t
> DBD-Pg-2.7.2/t/01connect.t
> DBD-Pg-2.7.2/t/99_perlcritic.t
> DBD-Pg-2.7.2/t/03dbmethod.t
> DBD-Pg-2.7.2/t/99_pod.t
> DBD-Pg-2.7.2/t/99cleanup.t
> DBD-Pg-2.7.2/t/02attribs.t
> DBD-Pg-2.7.2/t/07copy.t
> DBD-Pg-2.7.2/t/03smethod.t
> DBD-Pg-2.7.2/.perlcriticrc
> DBD-Pg-2.7.2/Changes
> DBD-Pg-2.7.2/Pg.xs
> DBD-Pg-2.7.2/MANIFEST
> DBD-Pg-2.7.2/TODO
> DBD-Pg-2.7.2/lib/
> DBD-Pg-2.7.2/lib/Bundle/
> DBD-Pg-2.7.2/lib/Bundle/DBD/
> DBD-Pg-2.7.2/lib/Bundle/DBD/Pg.pm
> DBD-Pg-2.7.2/dbdimp.c
> DBD-Pg-2.7.2/Pg.h
> DBD-Pg-2.7.2/META.yml
> DBD-Pg-2.7.2/dbdimp.h
> DBD-Pg-2.7.2/README.dev
> DBD-Pg-2.7.2/README.win32
> DBD-Pg-2.7.2/types.c
> DBD-Pg-2.7.2/dbivport.h
> DBD-Pg-2.7.2/quote.c
> DBD-Pg-2.7.2/MANIFEST.SKIP
> DBD-Pg-2.7.2/win32.mak
> DBD-Pg-2.7.2/Pg.pm
> DBD-Pg-2.7.2/quote.h
> DBD-Pg-2.7.2/types.h
> DBD-Pg-2.7.2/README
> DBD-Pg-2.7.2/SIGNATURE
> DBD-Pg-2.7.2/Makefile.PL
> CPAN: File::Temp loaded ok (v0.14)
> Will not use File::Temp, need 0.16
> Removing previously used /Users/nick/.cpan/build/DBD-Pg-2.7.2
> Warning (usually harmless): 'YAML' not installed, will not store persistent
> state
>
> CPAN.pm: Going to build T/TU/TURNSTEP/DBD-Pg-2.7.2.tar.gz
>
> Configuring DBD::Pg 2.7.2
> PostgreSQL version: 80103 (default port: 5432)
> POSTGRES_HOME: (not set)
> POSTGRES_INCLUDE: (not set)
> POSTGRES_LIB: (not set)
> OS: darwin
> Checking if your kit is complete...
> Looks good
> Warning: prerequisite version 0 not found.
> Could not eval '
> package ExtUtils::MakeMaker::_version;
> no strict;
> BEGIN { eval {
> # Ensure any version() routine which might have leaked
> # into this package has been deleted. Interferes with
> # version->import()
> undef *version;
> require version;
> "version"->import;
> } }
>
> local $VERSION;
> $VERSION=undef;
> do {
> use version; our $VERSION = qv('2.7.2');
> };
> $VERSION;
> ' in Pg.pm: Can't locate version.pm in @INC (@INC contains: t/lib
> /System/Library/Perl/5.8.6/darwin-thread-multi-2level
> /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level
> /Library/Perl/5.8.6 /Library/Perl
> /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
> /Network/Library/Perl/5.8.6 /Network/Library/Perl
> /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
> /System/Library/Perl/Extras/5.8.6
> /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .) at (eval
> 6) line 16, <$fh> line 20.
> BEGIN failed--compilation aborted at (eval 6) line 16, <$fh> line 20.
> WARNING: Setting VERSION via file 'Pg.pm' failed
> at /System/Library/Perl/5.8.6/ExtUtils/MakeMaker.pm line 511
> Using DBI 1.604 (for perl 5.008006 on darwin-thread-multi-2level) installed in
> /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/
> Writing Makefile for DBD::Pg
> Could not read '/Users/nick/.cpan/build/DBD-Pg-2.7.2/META.yml'. Falling back
> to other methods to determine prerequisites
> ---- Unsatisfied dependencies detected during ----
> ---- TURNSTEP/DBD-Pg-2.7.2.tar.gz ----
> version [requires]
> Shall I follow them and prepend them to the queue
> of modules we are processing right now? [yes] y
> Running make test
> Delayed until after prerequisites
> Running make install
> Delayed until after prerequisites
> Running install for module 'version'
> 'YAML' not installed, falling back to Data::Dumper and Storable to read prefs
> '/Users/nick/.cpan/prefs'
> Running make for J/JP/JPEACOCK/version-0.74.tar.gz
> CPAN: checksum security checks disabled because Digest::SHA not installed.
> version-0.74/
> version-0.74/t/
> version-0.74/t/02derived.t
> version-0.74/t/coretests.pm
> version-0.74/t/03require.t
> version-0.74/t/01base.t
> version-0.74/lib/
> version-0.74/lib/version.pod
> version-0.74/lib/version/
> version-0.74/lib/version/typemap
> version-0.74/lib/version.pm
> version-0.74/vperl/
> version-0.74/vperl/vpp.pm
> version-0.74/vutil/
> version-0.74/vutil/lib/
> version-0.74/vutil/lib/version/
> version-0.74/vutil/lib/version/vxs.pm
> version-0.74/vutil/ppport.h
> version-0.74/vutil/vxs.xs
> version-0.74/vutil/vutil.c
> version-0.74/vutil/vutil.h
> version-0.74/README
> version-0.74/Changes
> version-0.74/Build.PL
> version-0.74/MANIFEST.SKIP
> version-0.74/Makefile.PL
> version-0.74/META.yml
> version-0.74/MANIFEST
> Will not use File::Temp, need 0.16
> Removing previously used /Users/nick/.cpan/build/version-0.74
> Warning (usually harmless): 'YAML' not installed, will not store persistent
> state
>
> CPAN.pm: Going to build J/JP/JPEACOCK/version-0.74.tar.gz
>
> Testing if you have a C compiler
> Checking if your kit is complete...
> Looks good
> Writing Makefile for version::vxs
> Writing Makefile for version
> Could not read '/Users/nick/.cpan/build/version-0.74/META.yml'. Falling back
> to other methods to determine prerequisites
> cp lib/version.pm blib/lib/version.pm
> cp lib/version.pod blib/lib/version.pod
> cp lib/version/vxs.pm ../blib/lib/version/vxs.pm
> cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
> -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"0.74\"
> -DXS_VERSION=\"0.74\"
> "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" vutil.c
> /usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp -typemap
> /System/Library/Perl/5.8.6/ExtUtils/typemap -typemap ../lib/version/typemap
> vxs.xs > vxs.xsc && mv vxs.xsc vxs.c
> cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
> -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"0.74\"
> -DXS_VERSION=\"0.74\"
> "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" vxs.c
> Running Mkbootstrap for version::vxs ()
> chmod 644 vxs.bs
> rm -f ../blib/arch/auto/version/vxs/vxs.bundle
> env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup
> -L/usr/local/lib vutil.o vxs.o -o ../blib/arch/auto/version/vxs/vxs.bundle
> \
> \
>
> chmod 755 ../blib/arch/auto/version/vxs/vxs.bundle
> cp vxs.bs ../blib/arch/auto/version/vxs/vxs.bs
> chmod 644 ../blib/arch/auto/version/vxs/vxs.bs
> Manifying blib/man3/version.3pm
> JPEACOCK/version-0.74.tar.gz
> /usr/bin/make -- OK
> Warning (usually harmless): 'YAML' not installed, will not store persistent
> state
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/01base.........ok
> t/02derived......ok
> t/03require......ok
> All tests successful.
> Files=3, Tests=390, 1 wallclock secs ( 0.13 usr 0.04 sys + 0.67 cusr 0.16
> csys = 1.00 CPU)
> Result: PASS
> No tests defined for version::vxs extension.
> JPEACOCK/version-0.74.tar.gz
> /usr/bin/make test -- OK
> Warning (usually harmless): 'YAML' not installed, will not store persistent
> state
> Running make install
> Prepending /Users/nick/.cpan/build/version-0.74/blib/arch
> /Users/nick/.cpan/build/version-0.74/blib/lib to PERL5LIB for 'install'
> Files found in blib/arch: installing files in blib/lib into architecture
> dependent library tree
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> ERROR: Can't create '/Library/Perl/5.8.6/darwin-thread-multi-2level'
> Do not have write permissions on
> '/Library/Perl/5.8.6/darwin-thread-multi-2level'
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> at -e line 1
> make: *** [pure_site_install] Error 255
> JPEACOCK/version-0.74.tar.gz
> /usr/bin/make install -- NOT OK
> ----
> You may have to su to root to install the package
> (Or you may want to run something like
> o conf make_install_make_command 'sudo make'
> to raise your permissions.Warning (usually harmless): 'YAML' not installed,
> will not store persistent state
> Running make for T/TU/TURNSTEP/DBD-Pg-2.7.2.tar.gz
> Prepending /Users/nick/.cpan/build/version-0.74/blib/arch
> /Users/nick/.cpan/build/version-0.74/blib/lib to PERL5LIB for 'get'
> Has already been unwrapped into directory
> /Users/nick/.cpan/build/DBD-Pg-2.7.2
> Prepending /Users/nick/.cpan/build/version-0.74/blib/arch
> /Users/nick/.cpan/build/version-0.74/blib/lib to PERL5LIB for 'make'
>
> CPAN.pm: Going to build T/TU/TURNSTEP/DBD-Pg-2.7.2.tar.gz
>
> 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.8.6/darwin-thread-multi-2level/auto/DBI/Driver.xst > Pg.xsi
> /usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp -typemap
> /System/Library/Perl/5.8.6/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
> cc -c -I/usr/local/pgsql/include
> -I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI -g -pipe -fno-common
> -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include
> -DPGLIBVERSION=80103 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF
> -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc
> -Dcalloc=Perl_calloc -DVERSION=\"undef\" -DXS_VERSION=\"undef\"
> "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" Pg.c
> cc -c -I/usr/local/pgsql/include
> -I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI -g -pipe -fno-common
> -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include
> -DPGLIBVERSION=80103 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF
> -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc
> -Dcalloc=Perl_calloc -DVERSION=\"undef\" -DXS_VERSION=\"undef\"
> "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" dbdimp.c
> cc -c -I/usr/local/pgsql/include
> -I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI -g -pipe -fno-common
> -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include
> -DPGLIBVERSION=80103 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF
> -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc
> -Dcalloc=Perl_calloc -DVERSION=\"undef\" -DXS_VERSION=\"undef\"
> "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" quote.c
> cc -c -I/usr/local/pgsql/include
> -I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI -g -pipe -fno-common
> -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include
> -DPGLIBVERSION=80103 -DPGDEFPORT=5432 -Os -DPERL_EXTMALLOC_DEF
> -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc
> -Dcalloc=Perl_calloc -DVERSION=\"undef\" -DXS_VERSION=\"undef\"
> "-I/System/Library/Perl/5.8.6/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="/usr/local/pgsql/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc
> -bundle -undefined dynamic_lookup -L/usr/local/lib Pg.o dbdimp.o quote.o
> types.o -o blib/arch/auto/DBD/Pg/Pg.bundle \
> -L/usr/local/pgsql/lib -lpq \
>
> 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-2.7.2.tar.gz
> /usr/bin/make -- OK
> Warning (usually harmless): 'YAML' not installed, will not store persistent
> state
> Prepending /Users/nick/.cpan/build/version-0.74/blib/arch
> /Users/nick/.cpan/build/version-0.74/blib/lib to PERL5LIB for 'test'
> Running make test
> PGINITDB="/usr/local/pgsql/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........skipped: Set the environment variable TEST_SIGNATURE to
> enable this test
> t/00basic.............1/3 Bailout called. Further testing stopped: Cannot
> continue without DBD::Pg
>
> # Failed test 'use DBD::Pg;'
> # at t/00basic.t line 13.
> # Tried to use 'DBD::Pg'.
> # Error: DBD::Pg object version undef does not match bootstrap parameter
> 2.7.2 at /System/Library/Perl/5.8.6/darwin-thread-multi-2level/DynaLoader.pm
> line 253.
> # Compilation failed in require at (eval 5) line 2.
> # BEGIN failed--compilation aborted at (eval 5) line 2.
> make: *** [test_dynamic] Error 1
> TURNSTEP/DBD-Pg-2.7.2.tar.gz
> /usr/bin/make test -- NOT OK
> //hint// to see the cpan-testers results for installing this module, try:
> reports TURNSTEP/DBD-Pg-2.7.2.tar.gz
> Warning (usually harmless): 'YAML' not installed, will not store persistent
> state
> Running make install
> make test had returned bad status, won't install without force
> Nicholas-Landess-Computer:/volumes/wonder/downloads/DBD-Pg-2.7.2 nick$
Any suggestions/assistance greatly appreciated
Thanks
Nick Landess
[EMAIL PROTECTED]