[postgis-users] problems while upgrading postgis

Sandro Santilli strk at kbt.io
Wed Nov 9 11:27:16 PST 2016


On Wed, Nov 09, 2016 at 06:33:28PM +0100, Paolo Importuni wrote:
> 2016-11-09 12:06 GMT+01:00 Sandro Santilli <strk at kbt.io>:
> > On Wed, Nov 09, 2016 at 11:44:53AM +0100, Paolo Importuni wrote:
> > > 
> > > I've just tried but it complains that
> > > "ERROR:  type "raster" does not exist"
> >
> > This is because postgis _EXTENSION_ is forced to have
> > also raster in it :(
> >
> > So the fix is for you to load raster script for 2.0.0
> >
> > psql -f `pg_config --sharedir`/contrib/postgis-2.0/rtpostgis.sql <yourdb>
>
> still problems, it says:
> "You need to install postgresql-server-dev-X.Y for building a server-side
> extension or libpq-dev for building a client-side application"

Not the psql command I gave you above, right ?
Did you try that ? Or what are you doing ?

> Do I need to apt-install postgresql-server-dev-X.Y? What's the use?

If you're building PostGIS yourself  you need postgresql server headers.

--strk;


More information about the postgis-users mailing list