Skip site navigation (1) Skip section navigation (2)

Install on Windows XP

From: Mike Bassett <Mike_Bassett(at)uk(dot)ibm(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Install on Windows XP
Date: 2006-09-28 13:22:16
Message-ID: OFBB803B7E.854EA4A8-ON802571F7.00493408-802571F7.00497374@uk.ibm.com (view raw or flat)
Thread:
Lists: pgsql-hackers
I cannot get gmake to work for the postgresql-8.1.4 source code on Windows
XP.

I created MinGW with the MinGW 5.0.3.exe (both current & latest) and MySyS
1.0.10.
Gmake was not available so I used the included mysys make – GNU version 79.
After succeeding with “./configure –without-zlib” it then failed on “make”
as follows:

rt/win32"  -c -o fseeko.o fseeko.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-I../../src/port -DFRONTEND -I../../src/include -I./src/include/port/win32
-DEXEC_BACKEND  "-I../../src/include/port/win32"  -c -o getrusage.o
getrusage.c
In file included from ../../src/include/rusagestub.h:17,
                 from getrusage.c:18:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:27:
error: redefinition of `struct timezone'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:40:
error: conflicting types for 'gettimeofday'
../../src/include/port.h:266: error: previous declaration of 'gettimeofday'
was here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:40:
error: conflicting types for 'gettimeofday'
../../src/include/port.h:266: error: previous declaration of 'gettimeofday'
was here
make[2]: *** [getrusage.o] Error 1
make[2]: Leaving directory `/c/postgresql-8.1.4/src/port'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/c/postgresql-8.1.4/src'
make: *** [install] Error 2.

I tracked down zlib but never did figure out where to place it.

I retried using the guide in libpqxx which said: extract, compile & install
zlib by ./configure –prefix=c:/mingw/local && make && make && make install
– this failed.

I then tried ./configure –prefix=c:/mingw/local
–with-includes=c:/mingw/local/include –with-libs=c:/mingw/local/lib make &&
make install but it had an issue with make.

Mike Bassett

pgsql-hackers by date

Next:From: Tom LaneDate: 2006-09-28 14:05:50
Subject: Re: 'pg_ctl -w' times out when unix_socket_directory is
Previous:From: Heikki LinnakangasDate: 2006-09-28 11:55:05
Subject: Re: Block B-Tree concept

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group