In the process of natively win32 compiling DBD::Pg 2.0 I have run into
that problem, myself. The solution is to edit Makefile.PL and change...
DBI::DBD::dbd_postamble
to
DBI::DBD->dbd_postamble
If there are any more win32 surprises, well, besides the fact that I
don't have strings.h, I won't know until this weekend when I have time
to finish this feat. So in the mean time, good luck and hope it's
downhill from here :)
Kudos to GSM, btw. The wait was *well* worth it. The async and array
handling features are just plain sweet.
T.J.
Maurice Height wrote:
I have tried to install DBD::Pg v2.0.0 into Strawberry Perl v5.10.0 under
Windows XP without success. From the notes in the file "README.win32" it
seems that everything is set up for Microsoft tools rather than MinGW.
Unfortunately I do not have enough understanding of the installation process
to work how it should be done with the utilities provided by Strawberry Perl
(dmake, gcc etc). I already have DBI v1.602 installed.
The output from the CPAN client provided in my Strawberry Perl installation
is as follows:
CPAN: File::HomeDir loaded ok (v0.67)
cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled
cpan> install DBD::Pg
Database was generated on Wed, 13 Feb 2008 02:38:34 GMT
Running install for module 'DBD::Pg'
Running make for T/TU/TURNSTEP/DBD-Pg-2.0.0.tar.gz
Checksum for
C:\strawberry\cpan\sources\authors\id\T\TU\TURNSTEP\DBD-Pg-2.0.0.tar.gz ok
Scanning cache C:\strawberry\cpan\build for sizes
............................................................................
DONE
CPAN.pm: Going to build T/TU/TURNSTEP/DBD-Pg-2.0.0.tar.gz
Configuring DBD::Pg 2.0.0
PostgreSQL version: 80300 (default port: 5432)
POSTGRES_HOME: C:\Program Files\PostgreSQL\8.3
POSTGRES_INCLUDE: C:\Program Files\PostgreSQL\8.3\include
POSTGRES_LIB: C:\Program Files\PostgreSQL\8.3\lib
OS: MSWin32
Use of uninitialized value in foreach loop entry at Makefile.PL line 108.
Checking if your kit is complete...
Looks good
Undefined subroutine &DBI::DBD::dbd_postamble called at Makefile.PL line
173.
# Looks like your test died before it could output anything.
Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefile.PL
LIBS=-LC:\strawberry\c\lib INC=-IC:\strawberry\c\include]
TURNSTEP/DBD-Pg-2.0.0.tar.gz
C:\strawberry\perl\bin\perl.exe Makefile.PL LIBS=-LC:\strawberry\c\lib
INC=-IC:\strawberry\c\include -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
TURNSTEP/DBD-Pg-2.0.0.tar.gz : writemakefile NO
'C:\strawberry\perl\bin\perl.exe Makefile.PL LIBS=-LC:\strawberry\c\lib
INC=-IC:\strawberry\c\include' returned status 65280
Any help would be much appreciated.
Thanks
Maurice