[postgis-users] Notes: Installing PostGIS with PostgreSQL 7.3.2 on Cygwin

C F gis_consultant at hotmail.com
Wed Mar 19 15:16:47 PST 2003


I struggled with this configuration a while ago for two days.  I compiled 
this amateur set of instructions to make its way into the archives and 
hopefully help out somebody else who is also clueless on compiling and 
configuring C source code.  I just wrote down how it ended up working for 
me. Oddly enough it seems not everybody has the same problems... but between 
this post and other people's posts, it may at least give people a few clues 
to help them out.
Good luck!


Intalling PostgreSQL 7.3.2 and PostGIS 0.7.4 on Cygwin 1.3.22-1
---------------------------------------------------------------

1) Make sure you have the following Cygwin components installed first (among 
others I'm sure):

    crypt 1.0-1
    cygipc 1.13-2
    cygwin 1.3.16-1
    gcc 3.2-3
    libncurses6 5.2-8
    libreadline5 4.2a-1
    perl 5.8.0-1
    readline 4.2a-1
    zlib 1.1.3-6
    less
    binutils


2) Install cygipc.  Software and directions available here:

http://www.neuro.gatech.edu/users/cwilson/cygutils/cygipc/index.html#LATEST

3) Run cygipc in cygwin:

ipc-daemon &

4) cd to your postgresql 7.3.2 src directory and do the following:

touch src/backend/port/tas/dummy.s

./configure

/bin/make

5) Copy the postgis source to {postgresql_src_directory}/contrib/postgis

6) Replace the PostGIS Makefile with the text found at this location:
http://lists.refractions.net/pipermail/postgis-users/attachments/20030131/3cc9e215/Makefile.obj

7) In that Makefile you just replaced, also change the following (you may 
need verify this for your installation, I took all the default settings):

-change-
LPATH := /lib
-to-
LPATH := /usr/local/pgsql/lib

8) Do the following in the same PostGIS src directory:

/bin/make
cd ../..
/bin/make install
initdb -D /usr/local/pgsql/data
createdb {your db}
cd contrib/postgis*
/bin/make install
createlang plpgsql {your db}
psql -f postgis.sql -d {your db}




_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the postgis-users mailing list