[postgis-users] postgis installation on current Postgresql (8.1) database (on Debian)

Assad Jarrahian jarraa at gmail.com
Thu Jan 12 07:39:25 PST 2006


I am talking about the latest release 1.10
Yes it seems that I can find postgres.h
 pg_config --includedir-server
/usr/include/postgresql/8.1/server


What should I do with it?
thanks.
-assad

On 1/12/06, strk at refractions.net <strk at refractions.net> wrote:
> You're talking about postgis version ?
> Can you find postgres.h under `/usr/bin/pg_config --includedir-server` ?
> --strk;
>
> On Thu, Jan 12, 2006 at 01:46:17AM -0700, Assad Jarrahian wrote:
> > David and all,
> >   Thanks. I got everything installed, but when installing postgis I
> > got errors (see below).
> > The configure summary:
> >  SUMMARY
> >  -------------------------------------------------------
> >
> >  HOST_OS: linux-gnu
> >
> >    PGSQL: /usr/bin/pg_config
> >     GEOS: /usr/local/bin/geos-config (with C-API)
> >     PROJ: dir=/usr/local
> >    ICONV: 1
> >
> >  PORTNAME: linux
> >    PREFIX: /usr
> >   EPREFIX: ${prefix}
> >       DOC: /usr/share/doc/postgresql-doc-8.1
> >      DATA: /usr/share/postgresql/8.1/postgresql/contrib
> >       MAN: /usr/share/postgresql/8.1/man
> >       BIN: /usr/lib/postgresql/8.1/bin
> >       EXT: /usr/lib/postgresql/8.1/lib (\$$libdir)
> >  -------------------------------------------------------
> >
> >
> > and the errors:
> >
> > lwgeom_pg.h:28: warning: type defaults to 'int' in declaration of
> > 'getGeometryOID'
> > lwgeom_pg.h:28: warning: data definition has no type or storage class
> > lwgeom_pg.h:35: error: syntax error before '*' token
> > lwgeom_pg.h:36: error: syntax error before 'box2df_to_box'
> > lwgeom_pg.h:36: warning: type defaults to 'int' in declaration of
> > 'box2df_to_box'
> > lwgeom_pg.h:36: warning: data definition has no type or storage class
> > lwgeom_pg.h:37: error: syntax error before 'BOX'
> > lwgeom_pg.h:40: error: syntax error before 'BOX2D_same'
> > lwgeom_pg.h:40: warning: type defaults to 'int' in declaration of 'BOX2D_same'
> > lwgeom_pg.h:40: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:40: warning: data definition has no type or storage class
> > lwgeom_pg.h:41: error: syntax error before 'BOX2D_overlap'
> > lwgeom_pg.h:41: warning: type defaults to 'int' in declaration of
> > 'BOX2D_overlap'
> > lwgeom_pg.h:41: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:41: warning: data definition has no type or storage class
> > lwgeom_pg.h:42: error: syntax error before 'BOX2D_overleft'
> > lwgeom_pg.h:42: warning: type defaults to 'int' in declaration of
> > 'BOX2D_overleft'
> > lwgeom_pg.h:42: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:42: warning: data definition has no type or storage class
> > lwgeom_pg.h:43: error: syntax error before 'BOX2D_left'
> > lwgeom_pg.h:43: warning: type defaults to 'int' in declaration of 'BOX2D_left'
> > lwgeom_pg.h:43: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:43: warning: data definition has no type or storage class
> > lwgeom_pg.h:44: error: syntax error before 'BOX2D_right'
> > lwgeom_pg.h:44: warning: type defaults to 'int' in declaration of 'BOX2D_right'
> > lwgeom_pg.h:44: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:44: warning: data definition has no type or storage class
> > lwgeom_pg.h:45: error: syntax error before 'BOX2D_overright'
> > lwgeom_pg.h:45: warning: type defaults to 'int' in declaration of
> > 'BOX2D_overright'
> > lwgeom_pg.h:45: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:45: warning: data definition has no type or storage class
> > lwgeom_pg.h:46: error: syntax error before 'BOX2D_overbelow'
> > lwgeom_pg.h:46: warning: type defaults to 'int' in declaration of
> > 'BOX2D_overbelow'
> > lwgeom_pg.h:46: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:46: warning: data definition has no type or storage class
> > lwgeom_pg.h:47: error: syntax error before 'BOX2D_below'
> > lwgeom_pg.h:47: warning: type defaults to 'int' in declaration of 'BOX2D_below'
> > lwgeom_pg.h:47: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:47: warning: data definition has no type or storage class
> > lwgeom_pg.h:48: error: syntax error before 'BOX2D_above'
> > lwgeom_pg.h:48: warning: type defaults to 'int' in declaration of 'BOX2D_above'
> > lwgeom_pg.h:48: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:48: warning: data definition has no type or storage class
> > lwgeom_pg.h:49: error: syntax error before 'BOX2D_overabove'
> > lwgeom_pg.h:49: warning: type defaults to 'int' in declaration of
> > 'BOX2D_overabove'
> > lwgeom_pg.h:49: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:49: warning: data definition has no type or storage class
> > lwgeom_pg.h:50: error: syntax error before 'BOX2D_contained'
> > lwgeom_pg.h:50: warning: type defaults to 'int' in declaration of
> > 'BOX2D_contained'
> > lwgeom_pg.h:50: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:50: warning: data definition has no type or storage class
> > lwgeom_pg.h:51: error: syntax error before 'BOX2D_contain'
> > lwgeom_pg.h:51: warning: type defaults to 'int' in declaration of
> > 'BOX2D_contain'
> > lwgeom_pg.h:51: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:51: warning: data definition has no type or storage class
> > lwgeom_pg.h:52: error: syntax error before 'BOX2D_intersects'
> > lwgeom_pg.h:52: warning: type defaults to 'int' in
> > .......
> >
> > lwgeom_pg.h:69: error: syntax error before 'LWGEOM_getBBOX'
> > lwgeom_pg.h:69: warning: type defaults to 'int' in declaration of
> > 'LWGEOM_getBBOX'
> > lwgeom_pg.h:69: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:69: warning: data definition has no type or storage class
> > lwgeom_pg.h:70: error: syntax error before 'LWGEOM_addBBOX'
> > lwgeom_pg.h:70: warning: type defaults to 'int' in declaration of
> > 'LWGEOM_addBBOX'
> > lwgeom_pg.h:70: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:70: warning: data definition has no type or storage class
> > lwgeom_pg.h:71: error: syntax error before 'LWGEOM_dropBBOX'
> > lwgeom_pg.h:71: warning: type defaults to 'int' in declaration of
> > 'LWGEOM_dropBBOX'
> > lwgeom_pg.h:71: warning: parameter names (without types) in function declaration
> > lwgeom_pg.h:71: warning: data definition has no type or storage class
> > liblwgeom.c: In function 'trim_trailing_zeros':
> > liblwgeom.c:158: warning: implicit declaration of function 'strchr'
> > liblwgeom.c:158: warning: incompatible implicit declaration of
> > built-in function 'strchr'
> > liblwgeom.c:163: warning: implicit declaration of function 'strlen'
> > liblwgeom.c:163: warning: incompatible implicit declaration of
> > built-in function 'strlen'
> > make[1]: *** [liblwgeom.o] Error 1
> > make: *** [liblwgeom] Error 2
> >
> >
> >
> >
> >
> >
> >
> > On 1/12/06, Stefano Costa <steko at iosa.it> wrote:
> > > Il giorno gio, 12/01/2006 alle 00.28 -0700, Assad Jarrahian ha scritto:
> > > > hey david and all,
> > > >    thanks for replying.
> > > > I tried the first step and it raised an exception
> > > >
> > > > sudo apt-get postgresql-dev
> > > > E: Invalid operation postgresql-dev
> > >
> > > You should add an "install" just like this:
> > > sudo apt-get install postgresql-dev
> > >
> > > Regards,
> > >
> > > Stefano
> > > --
> > > Stefano Costa
> > > http://www.iosa.it Software Open Source per l'Archeologia
> > > Jabber: steko at jabber.linux.it
> > > GnuPG Key ID 1024D/0xD0D30245
> > > Linux Registered User #385969 counter.li.org
> > >
> > > _______________________________________________
> > > postgis-users mailing list
> > > postgis-users at postgis.refractions.net
> > > http://postgis.refractions.net/mailman/listinfo/postgis-users
> > >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
>
> --
>
>  /"\    ASCII Ribbon Campaign
>  \ /    Respect for low technology.
>   X     Keep e-mail messages readable by any computer system.
>  / \    Keep it ASCII.
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



More information about the postgis-users mailing list