Chris Travers wrote:
Forgot to CC the list....



The only other versions of Perl I know of are Vanilla and Strawberry
Perl, which come with MinGW, dmake, etc.  I have never had a problem
using CPAN for DBD::Pg on those distros with the exception of Windows
Vista, pre SP1 (compatibility issue with the GCC).  Though I haven't
tried to do this with DBD::Pg in a few years so there might be issues
that I am not aware of.  Given how smooth the process was before,
however, I doubt it.

Best Wishes,
Chris Travers

About a year ago, Mark Dootson kindly posted the following howto on this list.
I don't know if there is an archive to link to, so I'll just copy it:

Christoph

Mark Dootson wrote:
F.Y.I.

I tried a strawberry build with success using following steps:

One file change only needed to make in DBD::Pg source is:

Makefile.PL -
add 'use DBI::DBD;'.
comment out "unlink $output->{MAKEFILE};" at line 247

set required environment:

set PATH=C:\PROGRA~1\PostgreSQL\8.3\bin;%PATH%
set DBI_DSN=dbi:Pg:dbname=testdb
set DBI_USER=username
set DBI_PASS=password
set POSTGRES_HOME=C:/PROGRA~1/PostgreSQL/8.3
set POSTGRES_INCLUDE=C:/PROGRA~1/PostgreSQL/8.3/include
set POSTGRES_LIB=C:/PROGRA~1/PostgreSQL/8.3/lib


perl Makefile.PL

Now here's the ugly bit: edited both EXTRALIBS and LDLOADLIBS in the resulting Makefile to include C:\PROGRA~1\PostgreSQL\8.3\lib\libpq.lib

then

dmake
dmake test

all works fine.

Reply via email to