[postgis-users] Problems finding PostgresQL on an FC4 install ation

Putler, Dan Dan.Putler at sauder.ubc.ca
Fri Jan 6 17:01:11 PST 2006


Hi Mike,

That did the trick. I had looked at the configure help, I just didn't  
give it the full path to pg_config.

Dan

On 6-Jan-06, at 4:40 PM, Mike Leahy wrote:

> Dan,
>
> When I did this, I had set the pgsql parameter to point to  
> 'pg_config', and this has usually been the requirement for most  
> PostgreSQL-based builds that I done so far.  If you run './ 
> configure --help', you should see this is mentioned in the info  
> listed there.  Below is the configuration I used (my pgsql is  
> installed in /usr by the released RPMs for FC4), and I had no  
> problems with the build.
>
> ./configure --prefix=/usr/local --with-pgsql=/usr/bin/pg_config -- 
> with-geos=/usr/local/bin/geos-config --with-proj=/usr/local
>
> Hope this helps,
> Mike
>
> Putler, Dan wrote:
>> 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
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

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


More information about the postgis-users mailing list