[postgis-users] Compile CVS in MinGW

strk at refractions.net strk at refractions.net
Thu Apr 21 17:45:51 PDT 2005


On Thu, Apr 21, 2005 at 02:37:43PM -0400, Mike Leahy wrote:
> List,
> 
> I just compiled 1.0.0 in MinGW using Jean David's instructions...and it
> wend without a hitch.
> 
> However, the same cannot be said for the CVS - I actually tried the CVS
> first, but when I tried to configure it, it was unable to detect the
> PostgreSQL source.
> 
> The following command from the PostGIS cvs source:
> 
> configure --enable-autoconf --with-geos=/c/PostgreSQL/8.0.2/bin/geos-config \
> --with-proj=/c/PostgreSQL/8.0.2 \
> --with-pgsql-src=/home/$USERNAME/sources/PostgreSQL/postgresql-8.0.2 --prefix=/c/PostgreSQL/8.0.2

The CVS version changed ./configure interface (that's why users
shoudln't have been using it before ;).

A simple ./configure --help tells you the correct syntax
(last lines).

What you need here is --with-pgsql=<path_to_pg_config>.

If pg_config is in your path you shound't need that flag.

Also, it is better if you avoid the --prefix flag to
keep installation layout compatible with version 1.0.0
of postgis.

--strk;

> 
> 
> returns:
> 
> checking for gcc...gcc
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables... .exe
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for pg_config... no
> configure: error: PostgreSQL is required by PostGIS
> 
> 
> 
> Any guesses as to what's going on?  Should I just avoid the CVS for now?
> 
> Mike
> 

> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list