<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16535"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial>Petrus,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial>It looks to us that your --with-geosconfig may be pointing at 
the source directory instead of your install directory.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial>It should be pointing at wherever you installed the binaries 
of geos.  Where your --prefix was designated during your geos configure 
step.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial>So if you configured geos with something of the 
form</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><PRE class=wiki> ./configure --prefix=/root/geos/rel-3.2.2
make </PRE><PRE class=wiki>make install</PRE></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial>Then postgis should be</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><PRE class=wiki>./configure --with-geosconfig=/root/geos/rel-3.2.2/bin/geos-config</PRE></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial>Also since we wrote that article, geos 3.2.2 has come out, so 
you should be installing geos 3.2.2 instead of geos 3.2.0.  
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial>Geos 3.2.2 has bug fixes for Geos 3.2 branch, so will be 
stabler than the geos 3.2.0 version.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial>Leo and Regina</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=337131822-19052010><FONT color=#0000ff 
size=2 face=Arial><A 
href="http://www.postgis.us">http://www.postgis.us</A></FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> 
postgis-users-bounces@postgis.refractions.net 
[mailto:postgis-users-bounces@postgis.refractions.net] <B>On Behalf Of </B>Peter 
Cotroneo<BR><B>Sent:</B> Wednesday, May 19, 2010 10:15 AM<BR><B>To:</B> 
postgis-users@postgis.refractions.net<BR><B>Subject:</B> [postgis-users] PostGIS 
installation error: could not find geos_c.h<BR></FONT><BR></DIV>
<DIV></DIV>Hi,<BR><BR>I'm trying to install PostGIS 1.5 on an Amazon EC2 
instance running the 64-bit version of Fedora 8.  I've installed PostgreSQL 
8.4, Proj, GEOS, and libxml.  When I try to configure PostGIS, using the 
following command: <BR><BR>./configure 
--with-geosconfig=/root/sources/geos/geos-3.2.0/tools/geos-config<BR><BR>I get 
the following error:<BR><BR><<<BR>configure: error: could not find 
geos_c.h - you may need to specify the directory of a geos-config file using 
--with-geosconfig<BR>>><BR><BR>Now, I have geos_c.h installed in 
/root/sources/geos/geos-3.2.0/capi.  Can someone please tell me what I'm 
doing wrong?  By the way, I'm following these instructions:<BR><BR><A 
href="http://www.postgresonline.com/journal/index.php?/archives/147-Compiling-PostGIS-1.5-and-installing-after-Yum-PostgreSQL-Install.html">http://www.postgresonline.com/journal/index.php?/archives/147-Compiling-PostGIS-1.5-and-installing-after-Yum-PostgreSQL-Install.html</A><BR><BR>Cheers,<BR><BR>Petrus<BR><BR><BR><BR></BODY></HTML>