Subject: | DBD::Pg Native WIN32 Compilation |
Problem: Makefile.PL's dependency on pg_config
In order to compile DBD::Pg one must satisfy two conditions:
1. Compile it with same compiler as your perl,
2. Link it to a pq lib compiled with the same compiler.
I compile my perl with Visual Studio's nmake.
Now, Makefile.PL depends on pg_config and AFAIK, pg_config has not got a native WIN32 port yet.
So, as it stands, Makefile.PL will not run for me or anybody in my situation without asking for a program I cannot have.
Of course, the solution is simple:
1. Set environment variables 'POSTGRES_INCLUDE' and 'POSTGRES_LIB' to appropriate values,
2. Ignore the request for pg_config and press Enter.
Could an "if ($os eq 'MSWin32')" be put around the 'App::Info' section?
Thanks,
Joe
--
DBD::Pg Version: CVS
Perl version: 5.8.3 WIN32
OS: Windows 2000