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

TECHER David davidtecher at yahoo.fr
Fri Jan 6 17:08:01 PST 2006


Hum...!

I'm not a expert on FC4 (I'd prefer debian)

But execvp try to "see" something in PATH?!

Perhaps a problem with your PATH??? I don't know...

So (<-- just an idea! -->)

Be root then do:

make clean

export PATH=/usr/local/pgsql/bin:$PATH

./configure

U should have something like

 SUMMARY
 -------------------------------------------------------

 HOST_OS: linux-gnu

   PGSQL: /usr/local/pgsql/bin/pg_config
    GEOS: /usr/local/bin/geos-config (with C-API)
    PROJ: dir=/usr/local
   ICONV: 1

 PORTNAME: linux
   PREFIX: /usr/local
  EPREFIX: ${prefix}
      DOC: ${prefix}/share/doc
     DATA: ${prefix}/share/postgresql/contrib
      MAN: ${prefix}/man
      BIN: ${exec_prefix}/bin
      EXT: /usr/local/pgsql/lib (\$$libdir)
 -------------------------------------------------------

then make

postgres.h,fmrg.h are in /usr/local/pgsql/include/server that you can
see by doing

ls $(pg_config --includedir-server) | grep .h



Putler, Dan a écrit :

> 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
>
>------------------------------------------------------------------------
>
>_______________________________________________
>postgis-users mailing list
>postgis-users at postgis.refractions.net
>http://postgis.refractions.net/mailman/listinfo/postgis-users
>  
>


	

	
		
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com



More information about the postgis-users mailing list