[postgis-users] Problems finding PostgresQL on an FC4 installation

Putler, Dan Dan.Putler at sauder.ubc.ca
Fri Jan 6 15:13:13 PST 2006


Hi All,

I'm having a heck of a time installing PostGIS 1.1.0 on an FC4 system  
(with a P3 processor) that is running Postgresql 8.1.1, GEOS 2.2.1,  
and Proj 4.4.9.

I installed Postgresql from source with /usr/local/pgsql as the  
installation directory. As a result, I configured PostGIS using the  
option --with-pgsql=/usr/local/pgsql (I've also tried /usr/local and / 
usr/local/pgsql/bin as the postgres directories). Things seem to go  
along fine with configure since it finds geos, and proj, and doesn't  
complain about postgres. However, when I become root and attempt  
make, bad things happen. I created a transcript of the session, and  
here are the first few lines of the output of the make process, which  
might provide a clue to my problem:

make -C lwgeom
make[1]: execvp: /usr/local/pgsql: Permission denied
make[1]: Entering directory `/home/putler/build/postgresql-8.1.1/ 
contrib/postgis-1.1.0/lwgeom'
make[1]: execvp: /usr/local/pgsql: Permission denied
make[1]: execvp: /usr/local/pgsql: Permission denied
make[1]: execvp: /usr/local/pgsql: Permission denied
make[1]: execvp: /usr/local/pgsql: Permission denied
make[1]: execvp: /usr/local/pgsql: Permission denied
gcc -DUSE_VERSION=82 -DPOSTGIS_LIB_VERSION='"1.1.0"' - 
DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"' - 
DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-06  
22:23:57"' -I/usr/local/include -DUSE_PROJ  -I -DAUTOCACHE_BBOX=1  - 
DUSE_STATS -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/ 
include     -c -o liblwgeom.o liblwgeom.c
In file included from liblwgeom.c:26:
lwgeom_pg.h:4:22: error: postgres.h: No such file or directory
lwgeom_pg.h:5:29: error: utils/geo_decls.h: No such file or directory
lwgeom_pg.h:6:18: error: fmgr.h: No such file or directory
In file included from liblwgeom.c:26:
lwgeom_pg.h:28: error: syntax error before â

The three header files make can't find are part of postgres, so my  
guess is make still can't find postgres. I've played with  
LD_LIBRARY_PATH without any luck (which isn't surprising since it  
doesn't point to the header directories). Any ideas about what I'm  
not doing to make postgres visible?

Dan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060106/f0079a06/attachment.html>


More information about the postgis-users mailing list