[postgis-devel] Installation Paths

strk at refractions.net strk at refractions.net
Tue Dec 20 01:10:58 PST 2005


On Tue, Dec 20, 2005 at 04:53:20AM +0200, alex bodnaru wrote:
> 
> hi strk,
> 
> looks great.
> 
> two small objections:
> 
> since postgis docdir contains heavy postgis.html, and doc/Makefile
> appends postgis directory, it should be fair to have postgis
> documentation in a top documentation directory, not under postgresql
> one, especially for the case there are multiple postgresql.
> thus, if pg_config --configure gets a --docdir like
> /usr/share/doc/postgresql, i would suggest stripping postgresql through
> `dirname ${docdir}`.
> 
> datadir should better be where the specific postgresql is holding it's
> scripts, and it usualy contains a ./contrib subdir.
> the hard-wired path in my file, /usr/share/postgresql, is default for
> older debian distributions, which have only one postgresql.
> modern debian have a directory for any version under this, and this is
> being returned by pg_config.
> thus, i would append only /contrib, not /postgresql/contrib to pg_config
> --configure returned datadir.

Try this:

	./configure \
		--prefix=/usr/local \ 
		--datadir=/usr/share/postgresq/contrib/postgis  \
		--with-docdir=/usr/share/doc
		...

BTW: I just fixed an inconsistency in doc/Makefile, it was not adding
'postgis' to docdir.

--strk;



More information about the postgis-devel mailing list