<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=176484715-11122006><FONT face=Arial 
color=#0000ff size=2>Why don't you use the native Windows pre-compiled version 
instead?  There are valid reasons to use cygwin (instructor says you need 
to, similar linux/windows dev environments for class, gcc compiler, etc), I just 
want to make sure you aren't making it more difficult than you need 
to.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=176484715-11122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=176484715-11122006><FONT face=Arial 
color=#0000ff size=2>--Craig</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=176484715-11122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> 
  postgis-users-bounces@postgis.refractions.net 
  [mailto:postgis-users-bounces@postgis.refractions.net] <B>On Behalf Of 
  </B>nom<BR><B>Sent:</B> Monday, December 11, 2006 2:05 AM<BR><B>To:</B> 
  postgis-users@postgis.refractions.net<BR><B>Subject:</B> [postgis-users] Help 
  with PostGIS Installation<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV>Hi everyone!</DIV>
  <DIV> </DIV>
  <DIV>I am currently working on a project for school that requires the use 
  of PostGIS and</DIV>
  <DIV>so I quickly went to the various websites to find out the 
  requirements.  I am currently</DIV>
  <DIV>stuck in installation of PostGIS.  So far, this is my 
progress:</DIV>
  <DIV> </DIV>
  <DIV>Installed Cygwin and development tools like gcc, readline etc.</DIV>
  <DIV>Installed Proj4.4.6</DIV>
  <DIV>Installed Geos-2.2.3</DIV>
  <DIV>Installed Postgresql-8.2.0 using the source tree (./configure, make, make 
  check, make install, although there was a problem with make check)</DIV>
  <DIV> </DIV>
  <DIV>After setting these up I followed the instructions 
  on PostGIS.pdf.</DIV>
  <DIV> </DIV>
  <DIV>I placed the unzipped folder of PostGIS-1.1.6 (Also tried 1.2.0 but same 
  problem)</DIV>
  <DIV>under :</DIV>
  <DIV> </DIV>
  <DIV>C:\cygwin\home\Mon\postgresql-8.2.0\contrib</DIV>
  <DIV> </DIV>
  <DIV>I also changed the Makefile.config to for Proj4 and GEOS:</DIV>
  <DIV> </DIV><FONT size=2>
  <DIV>USE_PROJ=1</DIV>
  <DIV>PROJ_DIR=/usr/local</DIV>
  <DIV><A 
  href="mailto:PROJ_LIBDIR=@PROJ_LIBDIR">PROJ_LIBDIR=@PROJ_LIBDIR</A>@</DIV>
  <DIV> </DIV><FONT size=2>
  <DIV>USE_GEOS=1</DIV>
  <DIV>GEOS_DIR=/usr/local</DIV>
  <DIV>GEOS_LDFLAGS=@GEOS_LDFLAGS@</DIV>
  <DIV># EXPERIMENTAL! use geos C-API (only available with GEOS-2.2.x and 
  up)</DIV>
  <DIV><A 
  href="mailto:USE_GEOS_CAPI=@USE_GEOS_CAPI">USE_GEOS_CAPI=@USE_GEOS_CAPI</A>@</DIV>
  <DIV> </DIV>
  <DIV>Im not sure if the directory paths are correct.....</DIV>
  <DIV> </DIV>
  <DIV>Anyway I go to postgresql-8.2.0/contrib/postgis-1.1.6 in CYGWIN and 
  type:</DIV>
  <DIV> </DIV>
  <DIV>./configure --with-pgsql=/usr/local/pgsql/bin/pg_config</DIV>
  <DIV> </DIV>
  <DIV>The build seems fine at first but eventually I encounter an error:</DIV>
  <DIV> </DIV>
  <DIV>ed reference to 
  `__imp__SPI_processed'<BR>/home/Mon/postgresql-8.2.0/contrib/postgis-1.1.6/lwgeom/long_xact.c:138: 
  undefin<BR>ed reference to 
  `_SPI_exec'<BR>/home/Mon/postgresql-8.2.0/contrib/postgis-1.1.6/lwgeom/long_xact.c:140: 
  undefin<BR>ed reference to 
  `_elog_start'<BR>/home/Mon/postgresql-8.2.0/contrib/postgis-1.1.6/lwgeom/long_xact.c:140: 
  undefin<BR>ed reference to 
  `_elog_finish'<BR>/home/Mon/postgresql-8.2.0/contrib/postgis-1.1.6/lwgeom/long_xact.c:142: 
  undefin<BR>ed reference to 
  `__imp__SPI_processed'<BR>/home/Mon/postgresql-8.2.0/contrib/postgis-1.1.6/lwgeom/long_xact.c:158: 
  undefin<BR>ed reference to 
  `_elog_start'<BR>/home/Mon/postgresql-8.2.0/contrib/postgis-1.1.6/lwgeom/long_xact.c:158: 
  undefin<BR>ed reference to 
  `_elog_finish'<BR>/home/Mon/postgresql-8.2.0/contrib/postgis-1.1.6/lwgeom/long_xact.c:163: 
  undefin<BR>ed reference to 
  `_SPI_finish'<BR>/home/Mon/postgresql-8.2.0/contrib/postgis-1.1.6/lwgeom/long_xact.c:147: 
  undefin<BR>ed reference to `_SPI_finish'<BR>long_xact.o: In function 
  `getTransactionID':<BR>/home/Mon/postgresql-8.2.0/contrib/postgis-1.1.6/lwgeom/long_xact.c:172: 
  undefin<BR>ed reference to `_GetCurrentTransactionId'<BR>collect2: ld returned 
  1 exit status<BR>/usr/bin/dllwrap: /usr/bin/gcc exited with status 
  1<BR>make[1]: *** [lwgeom.so] Error 1<BR>make[1]: Leaving directory 
  `/home/Mon/postgis-1.1.6/lwgeom'<BR>make: *** [liblwgeom] Error 2</DIV>
  <DIV> </DIV>
  <DIV>I encounter this with PostGIS versions 1.2.0 and 1.1.6. </DIV>
  <DIV> </DIV>
  <DIV>Would anyone know why this problem is occuring?  I am currently 
  stuck here and</DIV>
  <DIV>I don't know how to proceed.  I would really appreciate help with 
  this problem if</DIV>
  <DIV>anyone has encountered it and has solved it.  I would also 
  appreciate the validation of the paths I used for GEOS and PROJ4.  
  Thank you for your cooperation and</DIV>
  <DIV>time in reading this :D</DIV>
  <DIV> </DIV>
  <DIV>Mon</DIV>
  <DIV> </DIV></FONT></FONT>
  <P>
  <HR SIZE=1>
  Be smarter than spam. See how smart SpamGuard is at giving junk email the boot 
  with the <A 
  href="http://us.rd.yahoo.com/evt=40705/*http://mrd.mail.yahoo.com/try_beta?.intl=ca"><B>All-new 
  Yahoo! Mail </B></A></BLOCKQUOTE></BODY></HTML>