[postgis-devel] pg9.5 setup

Brian M Hamlin maplabs at light42.com
Fri Jun 5 10:53:35 PDT 2015


presto-change-o
 
CFLAGS='-g' ./configure --with-python --with-pgport=5433 \
--enable-debug --enable-cassert \
--prefix=/usr/local/pg95 \
--with-libxml \
--enable-nls \
--with-openssl 
 
   refrain from guesses as to why.. but that works.. 
 
*Next item*.. even specifying a devel pg_config in PostGIS make,
apparently libs go into common areas [1] ?
 
 the idea is that I want both a 'stock' install of pg94 and this dev 95. 
Do I want to add something else to the postgis config, or, is it a non-issue
since the lwgeom into /usr/local/lib is the same for both pg9.4 and pg9.5dev
 
  hints appreciated  --Brian
 
... 
[1]
... (other `make install` stuff omitted)
done;
---- Making install in liblwgeom
make[1]: Entering directory '/home/shared/srcs_db8/postgis_22_git/liblwgeom'
/bin/bash ../libtool --mode=install /bin/bash ../install-sh 
liblwgeom.la "/usr/local/lib/liblwgeom.la"
libtool: install: /bin/bash ../install-sh .libs/liblwgeom-2.2.0dev.so 
/usr/local/lib/liblwgeom-2.2.0dev.so
cp: cannot create regular file '/usr/local/lib/_inst.3212_': Permission denied
Makefile:133: recipe for target 'install-liblwgeom' failed
make[1]: *** [install-liblwgeom] Error 1
make[1]: Leaving directory '/home/shared/srcs_db8/postgis_22_git/liblwgeom'
GNUmakefile:14: recipe for target 'install' failed
make: *** [install] Error 1
 
--
 
 

On Fri, 5 Jun 2015 10:17:22 -0700, Paul Ramsey
  wrote:

       I dunno Brian, I’m running off git tip too, and my pgxs file 
is right where it’s supposed to be
 
  /opt/pgsql/9.5/lib/pgxs/src/makefiles/pgxs.mk
 
Seems like your pg_config is looking in the right place, but it’s not 
there… my configure is just this.. 
 
CFLAGS="-O0 -g" \
./configure \
--enable-debug \
--enable-cassert \
--prefix=/opt/pgsql/${VERSION}/ \
--with-libxml \
--enable-nls \
--with-openssl \
--with-libraries=/opt/local/lib \
--with-includes=/opt/local/include
 
 
 
-- 
Paul Ramsey
http://cleverelephant.cahttp://postgis.net

On June 5, 2015 at 10:14:22 AM, Brian M Hamlin (maplabs at light42.com) wrote:

        
Hi - 
  I built postgres 9.5 trunk and am running it, alongside the postgis 
dev setup on debian 8 VM

  * configure  

CFLAGS='-g' ./configure --with-python --with-pgport=5433 --enable-debug 
--enable-cassert --disable-rpath --prefix=/usr/local/pg95

  * init the db as an ordinary user
  * set shell variables PGPORT and PGHOST  (must specify localhost)
  * connect with either psql or psql 9.5dev
works fine

  however,  when I went to rebuild postgis using the 9.5 pg_config

user at debian8:/home/shared/srcs_db8/postgis_22_git $
  CFLAGS='-g' ./configure 
--with-pgconfig=/usr/local/pg95/bin/pg_config --enable-profile

I get a configure error msg .. 
. 
. 
Using user-specified pg_config file: /usr/local/pg95/bin/pg_config
configure: error: the PGXS Makefile 
/usr/local/pg95/lib/pgxs/src/makefiles/pgxs.mk cannot be found. Please 
install the PostgreSQL server development packages and re-run configure. 
. 

  I built from postgres git trunk.. what else do I need to do ?

--
Brian M Hamlin
OSGeo California Chapter
blog.light42.com

_______________________________________________
postgis-devel mailing list
postgis-devel at lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel

-------------------------

_______________________________________________
postgis-devel mailing list
postgis-devel at lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel

--
Brian M Hamlin
OSGeo California Chapter
blog.light42.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20150605/49868ad4/attachment.html>


More information about the postgis-devel mailing list