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

Re: problem install postgres7.03 on win2000!!!!

From: Jason Tishler <Jason(dot)Tishler(at)dothill(dot)com>
To: james <james(at)autotools(dot)com(dot)tw>
Cc: Pgsql-Ports <pgsql-ports(at)postgresql(dot)org>
Subject: Re: problem install postgres7.03 on win2000!!!!
Date: 2001-03-21 03:11:54
Message-ID: 20010320221154.A541@dothill.com (view raw or flat)
Thread:
Lists: pgsql-ports
James,

On Wed, Mar 21, 2001 at 10:15:49AM +0800, james wrote:
> I had downloaded thecygwin DLL 1.1.8 install it on 'Windows 2000 professional'
> platform.
> then i download the postgresql 7.03 and I followed the instructions "http://
> people.freebsd.org/~kevlo/postgres/portNT.html".
> 
> I could successfully run the 'configure' command.
> The next step 'make' is unsuccessful. 'make' terminates
> giving the following error message:
> 
> In file included from dllinit.c:46:
> /usr/include/cygwin/cygwin_dll.h:14: windows.h: No such file or directory
> make[2]: *** [dllinit.o] Error 1
> make[2]: Leaving directory `/usr/src/postgresql-7.0.3/src/utils'
> make[1]: *** [../utils/dllinit.o] Error 2
> make[1]: Leaving directory `/usr/src/postgresql-7.0.3/src/backend'
> make: *** [all] Error 2

I presume from the above that your version of Cygwin gcc is 2.95.2-7 or
later.  You can execute "gcc --version" to verify.  Anyway, there has
been a change to Cygwin gcc that stops it from automatically looking in
/usr/include/w32api.  This is why you are getting the "windows.h: No
such file or directory" error above.

You can try reconfiguring (after removing config.cache), using the
following:

    $ CC='gcc -mwin32' configure

I believe that this should work but you may get other problems due to the
"-mwin32" option.

Alternatively, I strongly recommend using PostgreSQL 7.1beta6 since it
builds OOTB under Cygwin (and for other reasons too).

Additionally, you should replace the Cygwin 1.1.8-2 DLL (i.e.,
cygwin1.dll) with one from a recent snapshot to avoid the following
problem:

    http://www.postgresql.org/mhonarc/pgsql-ports/2001-02/msg00012.html

In the future, please post to the list instead of using direct email so
others can benefit too.

Thanks,
Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason(dot)Tishler(at)dothill(dot)com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

Responses

pgsql-ports by date

Next:From: JHopkinsDate: 2001-03-21 22:58:52
Subject: problem starting postmaster under W2000
Previous:From: Tom LaneDate: 2001-03-20 22:48:25
Subject: Re: surprise! Help needed on Win2K Postgres

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