Problems installing DBD::Pg on Strawberry Perl

"Maurice Height" <mauriceh-bzGI/[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <000a01c88e6f$730858a0$0100000a@MauricePC>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.