<!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>Problems finding PostgresQL on an FC4 installation</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi All,</FONT>
</P>
<P><FONT SIZE=2>I'm having a heck of a time installing PostGIS 1.1.0 on an FC4 system </FONT>
<BR><FONT SIZE=2>(with a P3 processor) that is running Postgresql 8.1.1, GEOS 2.2.1, </FONT>
<BR><FONT SIZE=2>and Proj 4.4.9.</FONT>
</P>
<P><FONT SIZE=2>I installed Postgresql from source with /usr/local/pgsql as the </FONT>
<BR><FONT SIZE=2>installation directory. As a result, I configured PostGIS using the </FONT>
<BR><FONT SIZE=2>option --with-pgsql=/usr/local/pgsql (I've also tried /usr/local and / </FONT>
<BR><FONT SIZE=2>usr/local/pgsql/bin as the postgres directories). Things seem to go </FONT>
<BR><FONT SIZE=2>along fine with configure since it finds geos, and proj, and doesn't </FONT>
<BR><FONT SIZE=2>complain about postgres. However, when I become root and attempt </FONT>
<BR><FONT SIZE=2>make, bad things happen. I created a transcript of the session, and </FONT>
<BR><FONT SIZE=2>here are the first few lines of the output of the make process, which </FONT>
<BR><FONT SIZE=2>might provide a clue to my problem:</FONT>
</P>
<P><FONT SIZE=2>make -C lwgeom</FONT>
<BR><FONT SIZE=2>make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>make[1]: Entering directory `/home/putler/build/postgresql-8.1.1/ </FONT>
<BR><FONT SIZE=2>contrib/postgis-1.1.0/lwgeom'</FONT>
<BR><FONT SIZE=2>make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>make[1]: execvp: /usr/local/pgsql: Permission denied</FONT>
<BR><FONT SIZE=2>gcc -DUSE_VERSION=82 -DPOSTGIS_LIB_VERSION='"1.1.0"' - </FONT>
<BR><FONT SIZE=2>DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"' - </FONT>
<BR><FONT SIZE=2>DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-06 </FONT>
<BR><FONT SIZE=2>22:23:57"' -I/usr/local/include -DUSE_PROJ -I -DAUTOCACHE_BBOX=1 - </FONT>
<BR><FONT SIZE=2>DUSE_STATS -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/ </FONT>
<BR><FONT SIZE=2>include -c -o liblwgeom.o liblwgeom.c</FONT>
<BR><FONT SIZE=2>In file included from liblwgeom.c:26:</FONT>
<BR><FONT SIZE=2>lwgeom_pg.h:4:22: error: postgres.h: No such file or directory</FONT>
<BR><FONT SIZE=2>lwgeom_pg.h:5:29: error: utils/geo_decls.h: No such file or directory</FONT>
<BR><FONT SIZE=2>lwgeom_pg.h:6:18: error: fmgr.h: No such file or directory</FONT>
<BR><FONT SIZE=2>In file included from liblwgeom.c:26:</FONT>
<BR><FONT SIZE=2>lwgeom_pg.h:28: error: syntax error before â</FONT>
</P>
<P><FONT SIZE=2>The three header files make can't find are part of postgres, so my </FONT>
<BR><FONT SIZE=2>guess is make still can't find postgres. I've played with </FONT>
<BR><FONT SIZE=2>LD_LIBRARY_PATH without any luck (which isn't surprising since it </FONT>
<BR><FONT SIZE=2>doesn't point to the header directories). Any ideas about what I'm </FONT>
<BR><FONT SIZE=2>not doing to make postgres visible?</FONT>
</P>
<P><FONT SIZE=2>Dan</FONT>
</P>
</BODY>
</HTML>