[postgis-users] FYI: Solution to PostGIS Installation Problems onCygwin
Craig Miller
craig at millerfam.net
Tue Apr 8 21:55:14 PDT 2003
Alternatively, would it work to just redistibute the necessary PostGIS jar
files?
Is a JDK really necessary to run Postgres/PostGIS or just to access it via
JDBC? If it is the latter, I have found the Jars I compiled on my FreeBSD
PostGIS install to work on Windows when writing java PostGIS apps.
--Craig
----- Original Message -----
From: "Will Shaw" <wshaw at neo.tamu.edu>
To: <postgis-users at postgis.refractions.net>
Sent: Tuesday, April 08, 2003 8:30 PM
Subject: [postgis-users] FYI: Solution to PostGIS Installation Problems
onCygwin
> Those of you who have tried to compile postgis with no success have
probably
> ready many posts about what modifications you need to do. I just wanted
to
> clarify I few things. First of all you do need to modify the make file to
> include:
>
> #---------------------------------------------------------------
> # Add libraries that libpq depends (or might depend) on into the
> # shared library link. (The order in which you list them here doesn't
> # matter.)
> SHLIB_LINK=$(filter -L%, $(LDFLAGS))
> ifeq ($(USE_PROJ),1)
> SHLIB_LINK=$(filter -L%, $(LDFLAGS)) -L$(PROJ_DIR)/lib -lproj
> else
> SHLIB_LINK=$(filter -L%, $(LDFLAGS)) ../../src/backend/libpostgres.a
> endif
>
> #---------------------------------------------------------------
>
> And secondly, you do need to modify the file
> /usr/src/postgresql-7.3.2-1/src/include/optimizer/cost.h to include:
>
> extern DLLIMPORT double cpu_index_tuple_cost;
> //extern double cpu_index_tuple_cost;
>
> Now, what no one has mentioned so far is that this last modification will
> not work unless you have a java JDK installation in Cygwin. Getting java
> into Cygwin is apparently tricky, because I had a lot of problems, but the
> easiest way is to download the Blackdown java JDK-1.4.1 for linux from
here.
> http://www.blackdown.org/java-linux/mirrors.html Follow the directions in
> the install-j2sdk file. I wasn't able to get the java plugin or webstart
to
> work, but you don't need it anyway.
>
> Regards,
>
> Will
>
>
>
> _______________________________________________
> 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