Many thanks for the replies to my original post which I missed until
recently. 

The following information from Mark Dootson did the trick for me
when using DBD-Pg-2.5.0:

1. Edit the Makefile.PL
   - add 'use DBI::DBD;' (after line 7).
   - comment out "unlink $output->{MAKEFILE};" at about line 261

2. 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

3. Create database 'testdb' for testing purposes during the installation

4. perl Makefile.PL

5. Edit both EXTRALIBS and LDLOADLIBS in the resulting Makefile to include 
C:\PROGRA~1\PostgreSQL\8.3\lib\libpq.lib

6. then:

dmake
dmake test


Thanks to all
Maurice Height

Reply via email to