<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>Re: [postgis-users] Problems finding PostgresQL on an FC4 installation</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi Mike,</FONT>
</P>

<P><FONT SIZE=2>That did the trick. I had looked at the configure help, I just didn't&nbsp; </FONT>
<BR><FONT SIZE=2>give it the full path to pg_config.</FONT>
</P>

<P><FONT SIZE=2>Dan</FONT>
</P>

<P><FONT SIZE=2>On 6-Jan-06, at 4:40 PM, Mike Leahy wrote:</FONT>
</P>

<P><FONT SIZE=2>&gt; Dan,</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; When I did this, I had set the pgsql parameter to point to&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; 'pg_config', and this has usually been the requirement for most&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; PostgreSQL-based builds that I done so far.&nbsp; If you run './ </FONT>
<BR><FONT SIZE=2>&gt; configure --help', you should see this is mentioned in the info&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; listed there.&nbsp; Below is the configuration I used (my pgsql is&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; installed in /usr by the released RPMs for FC4), and I had no&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; problems with the build.</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; ./configure --prefix=/usr/local --with-pgsql=/usr/bin/pg_config -- </FONT>
<BR><FONT SIZE=2>&gt; with-geos=/usr/local/bin/geos-config --with-proj=/usr/local</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; Hope this helps,</FONT>
<BR><FONT SIZE=2>&gt; Mike</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; Putler, Dan wrote:</FONT>
<BR><FONT SIZE=2>&gt;&gt; Hi All,</FONT>
<BR><FONT SIZE=2>&gt;&gt; I'm having a heck of a time installing PostGIS 1.1.0 on an FC4&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; system&nbsp; (with a P3 processor) that is running Postgresql 8.1.1,&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; GEOS 2.2.1,&nbsp; and Proj 4.4.9.</FONT>
<BR><FONT SIZE=2>&gt;&gt; I installed Postgresql from source with /usr/local/pgsql as the&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; installation directory. As a result, I configured PostGIS using&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; the&nbsp; option --with-pgsql=/usr/local/pgsql (I've also tried /usr/ </FONT>
<BR><FONT SIZE=2>&gt;&gt; local and / usr/local/pgsql/bin as the postgres directories).&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; Things seem to go&nbsp; along fine with configure since it finds geos,&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; and proj, and doesn't&nbsp; complain about postgres. However, when I&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; become root and attempt&nbsp; make, bad things happen. I created a&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; transcript of the session, and&nbsp; here are the first few lines of&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; the output of the make process, which&nbsp; might provide a clue to my&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; problem:</FONT>
<BR><FONT SIZE=2>&gt;&gt; make -C lwgeom</FONT>
<BR><FONT SIZE=2>&gt;&gt; make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>&gt;&gt; make[1]: Entering directory `/home/putler/build/postgresql-8.1.1/&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; contrib/postgis-1.1.0/lwgeom'</FONT>
<BR><FONT SIZE=2>&gt;&gt; make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>&gt;&gt; make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>&gt;&gt; make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>&gt;&gt; make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>&gt;&gt; make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>&gt;&gt; gcc -DUSE_VERSION=82 -DPOSTGIS_LIB_VERSION='&quot;1.1.0&quot;' -&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; DPOSTGIS_VERSION='&quot;1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1&quot;' -&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; DPOSTGIS_SCRIPTS_VERSION='&quot;1.1.0&quot;' - </FONT>
<BR><FONT SIZE=2>&gt;&gt; DPOSTGIS_BUILD_DATE='&quot;2006-01-06&nbsp; 22:23:57&quot;' -I/usr/local/include - </FONT>
<BR><FONT SIZE=2>&gt;&gt; DUSE_PROJ&nbsp; -I -DAUTOCACHE_BBOX=1&nbsp; - DUSE_STATS -Wall -g -O2 -fPIC - </FONT>
<BR><FONT SIZE=2>&gt;&gt; fexceptions -DUSE_GEOS -I/usr/local/ include&nbsp;&nbsp;&nbsp;&nbsp; -c -o liblwgeom.o&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; liblwgeom.c</FONT>
<BR><FONT SIZE=2>&gt;&gt; In file included from liblwgeom.c:26:</FONT>
<BR><FONT SIZE=2>&gt;&gt; lwgeom_pg.h:4:22: error: postgres.h: No such file or directory</FONT>
<BR><FONT SIZE=2>&gt;&gt; lwgeom_pg.h:5:29: error: utils/geo_decls.h: No such file or directory</FONT>
<BR><FONT SIZE=2>&gt;&gt; lwgeom_pg.h:6:18: error: fmgr.h: No such file or directory</FONT>
<BR><FONT SIZE=2>&gt;&gt; In file included from liblwgeom.c:26:</FONT>
<BR><FONT SIZE=2>&gt;&gt; lwgeom_pg.h:28: error: syntax error before â</FONT>
<BR><FONT SIZE=2>&gt;&gt; The three header files make can't find are part of postgres, so&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; my&nbsp; guess is make still can't find postgres. I've played with&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; LD_LIBRARY_PATH without any luck (which isn't surprising since it&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; doesn't point to the header directories). Any ideas about what&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; I'm&nbsp; not doing to make postgres visible?</FONT>
<BR><FONT SIZE=2>&gt;&gt; Dan</FONT>
<BR><FONT SIZE=2>&gt;&gt; --------------------------------------------------------------------- </FONT>
<BR><FONT SIZE=2>&gt;&gt; ---</FONT>
<BR><FONT SIZE=2>&gt;&gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt;&gt; postgis-users mailing list</FONT>
<BR><FONT SIZE=2>&gt;&gt; postgis-users@postgis.refractions.net</FONT>
<BR><FONT SIZE=2>&gt;&gt; <A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-users" TARGET="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</A></FONT>
<BR><FONT SIZE=2>&gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt; postgis-users mailing list</FONT>
<BR><FONT SIZE=2>&gt; postgis-users@postgis.refractions.net</FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-users" TARGET="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</A></FONT>
</P>

</BODY>
</HTML>