[postgis-devel] [PostGIS] #635: configure ignores --prefix

PostGIS trac at osgeo.org
Sat Jan 1 18:09:08 PST 2011


#635: configure ignores --prefix
-------------------------------+--------------------------------------------
 Reporter:  marcusbooster      |       Owner:  pramsey      
     Type:  defect             |      Status:  new          
 Priority:  medium             |   Milestone:  PostGIS 1.5.3
Component:  postgis            |     Version:  1.5.X        
 Keywords:  build permissions  |  
-------------------------------+--------------------------------------------

Comment(by sharpie):

 Ok, it appears installation can be made to work as expected by installing
 in the following manner:

 {{{
 ./configure whatever args you need
 make
 make install DESTDIR=/where/you/want/PostGIS/to/live REGRESS=1
 }}}

 It seemed to be necessary to execute `make` before `make install`.  The
 `REGRESS=1` flag keeps the installation from regenerating the entire
 PostgreSQL prefix under destdir.

 Mind that you may need to relocate the libraries so that Postgres can find
 them in the $libpath.

 The one stray sheep in the current SVN head is raster2pgsql.py, the
 `PGSQL_BINDIR` variable in raster/scripts/python/Makefile appears to be
 hardcoded to the Postgres prefix at configure time and therefore ignores
 the effects of `DESTDIR` and `REGRESS`.  However one stray make variable
 is relatively easy to hunt down and fix.

 The only thing that still bothers me is that the `REGRESS` argument feels
 like it was intended for developers to use while developing and not for
 users while installing.  This makes me wonder if this argument will always
 be there or if it's behavior will change.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/635#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list