diff options
author | cvs2git <cvs2git> | 2006-08-23 22:25:40 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2006-08-23 22:25:40 +0000 |
commit | 58d093219cf60264550b8c34649d9f3190eda042 (patch) | |
tree | 10418dd70b52416a5f52da8e17d8e282d914595d /install/5.005/DBD-Pg-1.22-fixvercmp/README.win32 | |
parent | 3ce7691203a7737406bf2d4442f7fd84b81f847e (diff) |
This commit was manufactured by cvs2svn to create tagAFTER_FINAL_MASONIZE
'AFTER_FINAL_MASONIZE'.
Diffstat (limited to 'install/5.005/DBD-Pg-1.22-fixvercmp/README.win32')
-rw-r--r-- | install/5.005/DBD-Pg-1.22-fixvercmp/README.win32 | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/install/5.005/DBD-Pg-1.22-fixvercmp/README.win32 b/install/5.005/DBD-Pg-1.22-fixvercmp/README.win32 deleted file mode 100644 index 3cbe6734a..000000000 --- a/install/5.005/DBD-Pg-1.22-fixvercmp/README.win32 +++ /dev/null @@ -1,63 +0,0 @@ - -$Id: README.win32,v 1.1 2004-04-29 09:21:28 ivan Exp $ - - -Here is a step-by-step procedure for getting DBD-Pg to work on Windows -NT. This Port has been done by Bob Kline <bkline@rksystems.com>. - - -prerequisites: (older versions might also work, but these are the --------------- versions I used) - - o Windows NT4 SP4 - o Visual Studio 6.0 - o ActivePerl-5_6_0_613 with DBI-1.13 - o postgresql-7.0.2 - o DBD-Pg-0.95 - -Here we assume, that perl and postgresql have been installed in C:\. Now -perform the following steps: - - -1. compile libpq ----------------- - -set POSTGRES_HOME=C:\postgresql-7.0.2 -cd postgresql-7.0.2 -mkdir lib -mkdir include -cd src -copy include\port\win32.h include\os.h -edit interfaces\libpq\fe-connect.c and add as first statement in connectDBStart() the following code: - #ifdef WIN32 - static int WeHaveCalledWSAStartup; - if (!WeHaveCalledWSAStartup) { - WSADATA wsaData; - if (WSAStartup(MAKEWORD(1, 1), &wsaData)) { - printfPQExpBuffer(&conn->errorMessage, "WSAStartup failed: errno=%d\n", h_errno); - goto connect_errReturn; - } - WeHaveCalledWSAStartup = 1; - } - #endif -edit interfaces\libpq\win32.mak and change the flag /ML to /MD: CPP_PROJ=/nologo /MD ... -nmake /f win32.mak -cd .. -copy src\interfaces\libpq\Release\libpq.lib lib -copy src\interfaces\libpq\libpq-fe.h include -copy src\include\postgres_ext.h include -cd .. - - -2. build DBD-Pg ---------------- - -cd DBD-Pg -perl Makefile.PL CAPI=TRUE -nmake -set the environment variable PGHOST to the name of the postgresql server: set PGHOST=myserver -add on the server a postgres user with the same name as the NT-User (eg Administrator) -make sure, that your pg_hba.conf on the server is configured, such that a connection from another host will be accepted -mkdir C:\tmp -nmake test (expect to get errors concerning blobs) -nmake install |