[Gfoss] installazione PostGIS

Markus Neteler neteler at itc.it
Thu Dec 29 23:08:52 CET 2005


Ciao strk,

On Wed, Dec 28, 2005 at 03:36:28PM +0100, strk wrote:
> Non serve la directory contrib/
> e' un residuo del vecchio build system nel manuale.

ho controllato:
purtroppo e' anche un residuo nel Make system di Postgis 1.1.0
(mi sembra):

make install
...
ln -s liblwgeom.so.1.1 liblwgeom.so
/home/neteler/soft/postgis-1.1.0/install-sh -c -m 644 ../lwpostgis.sql /usr/share/pgsql/postgresql/contrib/lwpostgis.sql
/home/neteler/soft/postgis-1.1.0/install-sh -c -m 644 ../lwpostgis_upgrade.sql /usr/share/pgsql/postgresql/contrib/lwpostgis_upgrade.sql
/home/neteler/soft/postgis-1.1.0/install-sh -c -m 644 ../spatial_ref_sys.sql /usr/share/pgsql/postgresql/contrib/spatial_ref_sys.sql
make[1]: Leaving directory `/home/neteler/soft/postgis-1.1.0/lwgeom'
make -C loader install
make[1]: Entering directory `/home/neteler/soft/postgis-1.1.0/loader'
/home/neteler/soft/postgis-1.1.0/install-sh -c -m 755 pgsql2shp /usr/bin/pgsql2shp
/home/neteler/soft/postgis-1.1.0/install-sh -c -m 755 shp2pgsql /usr/bin/shp2pgsql
make[1]: Leaving directory `/home/neteler/soft/postgis-1.1.0/loader'
[root at dandre postgis-1.1.0]#

->  /usr/share/pgsql/postgresql/contrib/lwpostgis.sql
                     ^^^^^^^^^^^^^^^^^^^

[root at dandre postgis-1.1.0]# grep contrib *
...
configure:              datadir=${pg_datadir}/postgresql/contrib
configure.in:           datadir=${pg_datadir}/postgresql/contrib
...
Makefile.config:datadir=/usr/share/pgsql/postgresql/contrib
...

Mi piacerebbe di evitare questo. Ma forse non e' la mailing
list giusta qua...

ciao

 Markus

> Potete compilare postgis ovunque crediate, e non
> serve restartare il postgresql..
> 
> --strk;
> 
> On Tue, Dec 27, 2005 at 09:17:38PM +0100, Markus Neteler wrote:
> > On Mon, Dec 26, 2005 at 11:38:36PM +0100, strk wrote:
> > > On Mon, Dec 26, 2005 at 05:59:54PM +0100, Stefano Costa wrote:
> > > > Salve a tutti.
> > > > 
> > > > Quesito forse banale, ma principiante sono e tale resto almeno per un po'.
> > > > Usando Ubuntu (o Debian, penso che la domanda sia ugualmente valida) per
> > > > installare PostGIS dai sorgenti, è effettivamente necessario avere un source
> > > > tree della propria installazione di PostgreSQL oppure è sufficiente avere
> > > > installato il pacchetto postgresql-dev (o analogo)?
> > > 
> > > La seconda che hai detto.
> > > Paul ha sollevato un po' di confusione con l'annuncio della 1.1.0 ...
> > > ... forse sarebbe il caso di rettificare negli stessi canali.
> > > 
> > > Il manuale ti sembra chiaro in merito ?
> > 
> > Senza leggere il manuale ha funzionato questo per me
> > (Mandriva 2006, standard binary PostgreSQL 8 RPMs):
> > 
> >  tar xvfz postgis-1.1.0.tar.gz
> >  cd postgis-1.1.0
> >  ./configure
> >  make
> >  su
> >  make install
> > 
> > But then I had to fix a path (I linked instead of mv):
> >  cd /usr/share/pgsql
> >  ln -s postgresql/contrib .
> >  exit
> > 
> > I restarted PostgreSQL (not sure if needed), then
> > created a new database:
> >   createdb postgisdb
> >   createlang plpgsql postgisdb
> >   psql -f /usr/share/pgsql/contrib/lwpostgis.sql postgisdb
> > 
> > Then v.out.ogr, QGIS, ogrinfo worked.
> > 
> > Luckily the compiled source tree of PostgreSQL is no longer
> > needed.
> > 
> > Markus
> > 
> > PS: acc, scusate, il mio built-in babelfish e' andato in
> >     vacanze... ma dovrebbe essere chiaro
> > 
> > 
> > 
> > _______________________________________________
> > Gfoss mailing list
> > Gfoss at faunalia.com
> > http://www.faunalia.com/cgi-bin/mailman/listinfo/gfoss
> 
> -- 
> 
>  /"\    ASCII Ribbon Campaign
>  \ /    Respect for low technology.
>   X     Keep e-mail messages readable by any computer system.
>  / \    Keep it ASCII. 
> 
> 
> _______________________________________________
> Gfoss mailing list
> Gfoss at faunalia.com
> http://www.faunalia.com/cgi-bin/mailman/listinfo/gfoss

-- 
Markus Neteler     <neteler itc it>       http://mpa.itc.it
ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18        -       38050 Povo (Trento), Italy



More information about the Gfoss mailing list