
The global makefile isn't "there" until after you run ./configure in the 
postgres source directory. You need to at least configure postgres, even if you 
don't want to do a full compile and install. You probably need to make sure 
that you configure it the same way as your installed postgres - if you got the 
source from an SRPM, the .spec file should have the full configure command to 
use.

Chris

Quoting Nelson Tong <nel_tong@hotmail.com>:

> 
>   I am trying to compile postgis against PostgreSQL7.2.2 in redhat 7.3.
> Originally, I thought the entire source tree of the PostgreSQL could have
> come with redhat ( I am using Redhat database 2.0, which basically is
> PostgreSQL7.2.2) , so I went into the "contrib"  of the PostgreSQL
> installation and uncompress the postgis archive ( postgis-0.7.5.tar.gz). I
> edited the Makefile with the following:
> 
> subdir=contrib/postgis-0.7.5
> 
> and then I tried to run compile commands with "make". The following error
> came up:
> 
> ../../src/Makefile.global:269: ../../src/Makefile.port: No such file or
> directory
> Makefile:111: @abs_top_srcdir@/src/Makefile.shlib: No such file or directory
> make: *** No rule to make target `@abs_top_srcdir@/src/Makefile.shlib'.
> Stop.
> 
> Does this mean I would probably need to compile PostGIS against a full copy
> of the PostgresSQL source tree? Has anyone tried to compile and install
> PostGIS successfully with PostgreSQL that comes with Redhat database? Sorry
> for asking such stupid questions, but I think I am still just a novice when
> it comes to compiling source code from scratch in the linux environment.
> 
> S.T.
> 
> _________________________________________________________________
> Enjoy MSN 8 patented spam control and more with MSN 8 Dial-up Internet
> Service.  Try it FREE for one month!   http://join.msn.com/?page=dept/dialup
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 





