RES: RES: RES: [postgis-users] Problem during installation

Alex Martins Daher aldaher at cpqd.com.br
Mon Mar 15 13:13:50 PST 2004


Well, I compiled the GEOS, Proj4 and PostGIS and it worked.

Thank you for the great help!

-----Mensagem original-----
De: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net]Em nome de
chodgson at refractions.net
Enviada em: sexta-feira, 12 de março de 2004 19:31
Para: PostGIS Users Discussion
Assunto: Re: RES: RES: [postgis-users] Problem during installation


Looks like the header files for geos haven't been installed... did you compile 
geos from source, and do a "make install"? The header files should get put 
in /usr/local/include somewhere...

Chris

Quoting Alex Martins Daher <aldaher at cpqd.com.br>:

> When I try yo, I get this error:
> 
> [postgres at naja postgis-0.8.1]$ make
> g++ -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> -Wmissing-declarations -g -fexceptions   -I. -DFRONTEND
> -DSYSCONFDIR='"/usr/local/pgsql/etc"'  -DUSE_VERSION=74
> -I/l/disk1/postgres/software/source/postgresql-7.4.1/contrib/geos-
1.0/include/geos
> -DUSE_GEOS
> -I/l/disk1/postgres/software/source/postgresql-7.4.1/contrib/proj-
4.4.7/include
> -DUSE_PROJ  -I../../src/include -D_GNU_SOURCE   -c -o postgis_geos_wrapper.o
> postgis_geos_wrapper.cpp
> postgis_geos_wrapper.cpp:44:18: geom.h: No such file or directory
> postgis_geos_wrapper.cpp:45:18: util.h: No such file or directory
> postgis_geos_wrapper.cpp:47: namespace `geos' undeclared
> postgis_geos_wrapper.cpp:99: `Geometry' was not declared in this scope
> postgis_geos_wrapper.cpp:99: `g1' was not declared in this scope
> postgis_geos_wrapper.cpp:99: `Geometry' was not declared in this scope
> postgis_geos_wrapper.cpp:99: `g2' was not declared in this scope
> postgis_geos_wrapper.cpp:99: warning: `GEOSrelate' initialized and declared
>    `extern'
> 
> -----Mensagem original-----
> De: postgis-users-bounces at postgis.refractions.net
> [mailto:postgis-users-bounces at postgis.refractions.net]Em nome de
> chodgson at refractions.net
> Enviada em: sexta-feira, 12 de março de 2004 18:05
> Para: PostGIS Users Discussion
> Assunto: Re: RES: [postgis-users] Problem during installation
> 
> 
> Did you recompile PostGIS after installing those libraries?
> 
> Chris
> 
> Quoting Alex Martins Daher <aldaher at cpqd.com.br>:
> 
> > Thank you David!
> >
> > So, I've installed proj and geos libraries, but I am still hitting on
> > the same error. What else can I verify/do?
> >
> > [postgres at naja postgis-0.8.1]$ psql -d aldaher -f postgis2.sql
> > BEGIN
> >         message
> > ------------------------
> >  PL/PgSQL is installed.
> > (1 row)
> >
> > psql:postgis2.sql:44: NOTICE:  type "histogram2d" is not yet defined
> > DETAIL:  Creating a shell type definition.
> > psql:postgis2.sql:44: ERROR:  could not load library
> > "/l/disk1/postgres/software/source/postgresql-7.4.1/contrib/postgis-
> 0.8.1/libpostgis.so.0.8":
> > /l/disk1/postgres/software/source/postgresql-7.4.1/contrib/postgis-
> 0.8.1/libpostgis.so.0.8:
> > undefined symbol: pj_errno
> > psql:postgis2.sql:49: ERROR:  current transaction is aborted, commands
> > ignored until end of transaction block
> > psql:postgis2.sql:57: ERROR:  current transaction is aborted, commands
> > ignored until end of transaction block
> > psql:postgis2.sql:65: ERROR:  current transaction is aborted, commands
> > ignored until end of transaction block
> >
> > -----Mensagem original-----
> > De: postgis-users-bounces at postgis.refractions.net
> > [mailto:postgis-users-bounces at postgis.refractions.net]Em nome de TECHER
> > Jean David
> > Enviada em: sexta-feira, 12 de março de 2004 13:00
> > Para: PostGIS Users Discussion
> > Assunto: RE: [postgis-users] Problem during installation
> >
> >
> > Hi Martins
> >
> > All I knox it is that pj_errno.c  is a file from sources of PROJ.
> >
> > Perhaps you need to see if you install postgis with PROJ=1.
> >
> > So Perhaps postgis can't find the PROJ librairies
> >
> > TECHER JEAN DAVID
> > - Responsable Informatique 01MAP -
> > e-mail:davidtecher at yahoo.fr
> > Tél: 06 85 37 36 75
> > Site PostGIS: http://techer.pascal.free.fr/postgis/index.htm
> >
> > -----Message d'origine-----
> > De : postgis-users-bounces at postgis.refractions.net
> > [mailto:postgis-users-bounces at postgis.refractions.net]De la part de Alex
> > Martins Daher
> > Envoyé : vendredi 12 mars 2004 15:54
> > À : postgis-users at postgis.refractions.net
> > Objet : [postgis-users] Problem during installation
> >
> >
> > Hi All!
> >
> > So, I am having a problem during the installation of PostGIS 0.81
> > in Postgres 7.4.1.
> >
> > I ran the make/make install, and it was OK, but when I try to load
> > the spatial types and stuff (inside the postgis.sql), I get the error
> > below:
> >
> > [postgres at naja postgis-0.8.1]$ pwd
> > /l/disk1/postgres/software/source/postgresql-7.4.1/contrib/postgis-0.8.1
> > [postgres at naja postgis-0.8.1]$ psql -d aldaher -f postgis.sql
> > BEGIN
> >         message
> > ------------------------
> >  PL/PgSQL is installed.
> > (1 row)
> >
> > psql:postgis.sql:44: NOTICE:  type "histogram2d" is not yet defined
> > DETAIL:  Creating a shell type definition.
> > psql:postgis.sql:44: ERROR:  could not access file
> > "$libdir/libpostgis.so.0.8": No such file or directory
> > psql:postgis.sql:49: ERROR:  current transaction is aborted, commands
> > ignored until end of transaction block
> > psql:postgis.sql:57: ERROR:  current transaction is aborted, commands
> > ignored until end of transaction block
> > psql:postgis.sql:65: ERROR:  current transaction is aborted, commands
> > ignored until end of transaction block
> > psql:postgis.sql:70: ERROR:  current transaction is aborted, commands
> > ignored until end of transaction block
> > psql:postgis.sql:77: ERROR:  current transaction is aborted, commands
> > ignored until end of transaction block
> >
> > Then I replaced the $libdir for the full path, and now I am getting this
> > one:
> >
> > [postgres at naja postgis-0.8.1]$ psql -d aldaher -f postgis2.sql
> > BEGIN
> >         message
> > ------------------------
> >  PL/PgSQL is installed.
> > (1 row)
> >
> > psql:postgis2.sql:44: NOTICE:  type "histogram2d" is not yet defined
> > DETAIL:  Creating a shell type definition.
> > psql:postgis2.sql:44: ERROR:  could not load library
> >
> "/l/disk1/postgres/software/source/postgresql-7.4.1/contrib/postgis-0.8.1/li
> > bpostgis.so.0.8":
> >
> /l/disk1/postgres/software/source/postgresql-7.4.1/contrib/postgis-0.8.1/lib
> > postgis.so.0.8: undefined symbol: pj_errno
> > psql:postgis2.sql:49: ERROR:  current transaction is aborted, commands
> > ignored until end of transaction block
> >
> > Can anyone help me with this?
> >
> > Regards,
> > Alex
> > _______________________________________________
> > 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
> > _______________________________________________
> > 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
> _______________________________________________
> 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



More information about the postgis-users mailing list