Re: Desesperado con postgis

From: Miguel de la Fuente <jmdelafuente(at)yahoo(dot)com(dot)ar>
To: Edu Montaña <edumon20(at)hotmail(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Desesperado con postgis
Date: 2006-08-04 18:32:21
Message-ID: 20060804183221.50172.qmail@web52610.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Me alegro que hayas podido instalarlo, la verdad no sé cual pudo haber sido tu error, no he tenido tiempo de ver bien tu makefile.config, pero de lo que si estoy seguro de que tu error * no tiene que ver con el pgadmin3*

Saludos.-

Edu Montaña <edumon20(at)hotmail(dot)com> escribió:

>From: Edu Montaña
>To: jmdelafuente(at)yahoo(dot)com(dot)ar, pgsql-es-ayuda(at)postgresql(dot)org
>Subject: Re: [pgsql-es-ayuda] Desesperado con postgis
>Date: Fri, 04 Aug 2006 09:18:22 +0200
>
>
>
>
>>From: Miguel de la Fuente
>>To: Edu Montaña
>>Subject: Re: [pgsql-es-ayuda] Desesperado con postgis
>>Date: Thu, 3 Aug 2006 11:00:36 -0300 (ART)
>>
>>
>>
>>Edu Montaña escribió:
>>
>>
>> >From: Miguel de la Fuente
>> >To: Edu Montaña , pgsql-es-ayuda(at)postgresql(dot)org
>> >Subject: Re: [pgsql-es-ayuda] Desesperado con postgis
>> >Date: Wed, 2 Aug 2006 17:57:36 -0300 (ART)
>> >
>> >
>> > --- Edu Montaña escribió:
>> >
>> > > Hola a todos, soy un principiante en debian y estoy
>> > > intentando instalar
>> > > postgis, he visto diversos post que comentar mi
>> > > error, con la salvedad que
>> > > haciendo lo que se propone, no me soluciona el mio.
>> > > Os cuento: antes de
>> > > instalr postgis instalé las librerias Proj4 y GEOS
>> > > que lo hicieron en
>> > > /usr/local/lib; para la instalación de postgis hice
>> > > exactamente lo que se
>> > > indica en la documentación de la página oficial,
>> > > pero a la hora de hacer
>> > >
>> > > psql -d test -f
>> > > /usr/local/pgsql/share/contrib/lwpostgis.sql
>> > >
>> > > obtengo como respuesta:
>> > >
>> > >
>> >plsql:/usr/local/pgsql/share/contrib/lwpostgis.sql:48
>> > > NOTICE: type
>> > > "histogram2d" is not defined DETAIL: Creating a
>> > > shell definition
>> > >
>> >psql:/usr/local/pgsql/share/contrib/lwpostgis.sql:48:
>> > > ERROR: could not
>> > > access file "$libdir/liblwgeom.so.1.1": No such file
>> > > or directory
>> >
>> >Pregunta, descomprimiste el paquete en el directorio
>> >contrib en el src del postgres??
>> >
>> >Tenés la librería liblwgeom.so.1.1 en $prefix/lib
>> >(debian creo que es /usr/local/pgsql/lib)??
>> >
>> >
>> >
>>
>>Hola Miguel, gracias por interesarte en mi problema con tanta rapidez.
>>Respecto a la solución que propones, también la probé, una vez instalado
>>postgres descomprimí postgis en los fuentes compilados de postgres en
>>[postgresql source tree]/contrib, hice make y make install y obtuve el
>>mismo
>>resultado que comenté. Respecto a la librería liblwgeom.so.1.1 la tengo
>>incluida tanto en /usr/local/lib como en /usr/local/pgsql/lib (incluso
>>añadí
>>ambas rutas en ld.so.conf, pero siguió sin funcionar). Y $prefix estoy
>>seguro que es /usr/local tal y como viene en el archivo
>>/usr/local/bin/geos_config:
>>
>>#!/bin/sh
>>prefix=/usr/local
>>exec_prefix=${prefix}
>>libdir=${exec_prefix}/lib
>>
>>también decir, y por si sirve de algo que el STATUS obtenido al hacer make
>>de postgis dentro de [postgresql source tree]/contrib fué el siguiente:
>>
>>PGSQL:/usr/local/pgsql/bin/pg_config
>>GEOS:/usr/local/bin/geos-config (with C-API)
>>(idflags: -L/usr/local/lib)
>>PROJ:prefix=/usr/local libdir=/usr/local/lib
>>ICONV:1
>>PORTNAME:linux
>>PREFIX:/usr/local/pgsql
>>EPREFIX:${prefix}
>>DOC:/usr/local/pgsql/doc/contrib
>>DATA:/usr/local/pgsql/share/contrib
>>MAN:/usr/local/pgsql/man
>>BIN:/usr/local/pgsql/bin
>>EXT:/usr/local/pgsql/lib (\$$libdir)
>>
>>He instalado desde cero postgres y postgis y sigo con el mismo problema.
>>
>> >
>> >
>> >
>> >
>> >
>> >
>> >---------------------------(fin del mensaje)---------------------------
>> >TIP 3: si publicas/lees desde Usenet, por favor envía "subscribe-nomail"
>> > a majordomo(at)postgresql(dot)org para que tus mensajes puedan llegar
>> > a los suscriptores de la lista
>> >
>> >
>>
>>
>>
>> Me podés mostrar tu makefile.config, y decime la ruta del src del
>>postgres.
>>
>>
>>
>>
>>
>Hola de nuevo, la ruta del src de postgres es /usr/local/postgresql-8.1.4 y
>el fichero Makefile.config es:
>
>#---------------------------------------------------------------
># Configuration Directives
>#---------------------------------------------------------------
>
>#
># We recommend that you install the Proj4 and GEOS libraries
># referenced below to get the most use out of your PostGIS
># database.
>
>#
># Set USE_PROJ to 1 for Proj4 reprojection support (recommended)
>#
># Reprojection allows you to transform coordinate systems
># in the database with the Transform() function.
>#
># Download from: http://www.remotesensing.org/proj
>#
>USE_PROJ=1
>PROJ_DIR=/usr/local
>PROJ_LIBDIR=/usr/local/lib
>
>#
># Set USE_GEOS to 1 for GEOS spatial predicate and operator
># support (recommended).
># GEOS installation directory defaults to /usr/local,
># set GEOS_DIR environment variable to change it.
>#
># GEOS allows you to do exact topological tests, such as
># Intersects() and Touches(), as well as geometry operations,
># such as Buffer(), GeomUnion() and Difference().
>#
># Download from: http://geos.refractions.net
>#
>USE_GEOS=1
>GEOS_DIR=/usr/local
>GEOS_LDFLAGS=-L/usr/local/lib
># EXPERIMENTAL! use geos C-API (only available with GEOS-2.2.x and up)
>USE_GEOS_CAPI=1
>
>#
># Set USE_JTS to 1 if you have libjts installed.
>#
>USE_JTS=0
>JTS_INCLUDES=
>JTS_LIBDIR=
>
>#
># Set USE_STATS to 1 for new GiST statistics collection support
># Note that this support requires additional columns in
># GEOMETRY_COLUMNS, so see the list archives for info or
># install a fresh database using postgis.sql.
># This option is useless for builds against PGSQL>=80 (stats
># are always gathered in that case, and you don't need additional
># columns in geometry_columns).
>#
>USE_STATS=1
>
>#
># Set AUTOCACHE_BBOX to 0 if you want finer control over
># bounding box computation and caching for your geometries.
># If you do, bbox computattion strategies are listed in
># the file lwgeom/BBOXCACHE_BEHAVIOURS, but don't expect
># them to be easy nor consistent.
>#
>AUTOCACHE_BBOX=1
>
>#
># Set USE_ICONV to 1 if you want the loader (shp2pgsql)
># to support UTF-8 output.
>#
>USE_ICONV=1
>ICONV_LDFLAGS=
>
>#
># PGSQL
>#
>PGCONFIG=/usr/local/pgsql/bin/pg_config
>PGFEINCLUDES=-I/usr/local/pgsql/include
>PGBEINCLUDES=-I/usr/local/pgsql/include/server
>PGFELIBS=-L/usr/local/pgsql/lib -lpq
>PGBELIBS=-L/usr/local/pgsql/lib -lpostgres
>PORTNAME=linux
>
>#
># Docbook
>#
>XSLBASE=
>XSLTPROC=
>PDFXMLTEX=
>DB2PDF=
>JW=
>DOC_RULE=requirements_not_met
>
>#
># Compilers
>#
>CC=gcc
>CXX=g++
>ELF_SYSTEM=true
>
>#
># Other programs
>#
>PERL=/usr/bin/perl
>FLEX=/usr/bin/flex
>YACC=bison -y
>LN_S=ln -s
>INSTALL=/usr/local/postgresql-8.1.4/contrib/postgis-1.1.3/install-sh -c
>PWDREGRESS=pwd
>INSTALL_DATA=$(INSTALL) -m 644
>INSTALL_BIN=$(INSTALL) -m 755
>INSTALL_LIB=$(INSTALL) -m 755
>INSTALL_SHLIB=$(INSTALL_LIB)
>
>#
># PATHS
>#
>prefix=/usr/local/pgsql
>exec_prefix=${prefix}
>bindir=/usr/local/pgsql/bin
>datadir=/usr/local/pgsql/share/contrib
>mandir=/usr/local/pgsql/man
>docdir=/usr/local/pgsql/doc/contrib
>libexecdir=${exec_prefix}/libexec
>libdir=/usr/local/pgsql/lib
>LPATH=\$$libdir
>
>#
># DLL
>#
>DLSUFFIX=.so
>DLFLAGS=-shared
># these are for win32 and cygwin platforms
>DLLTOOL=
>DLLWRAP=
>
>#
># EXE
>#
>EXE=
>
>#
># HOST OS
>#
>HOST_OS=linux-gnu
>
>
>#---------------------------------------------------------------
># END OF CONFIGURATION
>#---------------------------------------------------------------
>
># Use JTS instead of GEOS if available
>ifeq ($(USE_JTS),1)
> USE_GEOS=0
>endif
>
>#---------------------------------------------------------------
># Test the version string and set the USE_VERSION macro
># appropriately.
>#
>VERSION=$(shell $(PGCONFIG) --version)
>ifneq ($(findstring 7.1,$(VERSION)),)
> USE_VERSION=71
>else
> ifneq ($(findstring 7.2,$(VERSION)),)
> USE_VERSION=72
> else
> ifneq ($(findstring 7.3,$(VERSION)),)
> USE_VERSION=73
> else
> ifneq ($(findstring 7.4,$(VERSION)),)
> USE_VERSION=74
> else
> ifneq ($(findstring 8.0,$(VERSION)),)
> USE_VERSION=80
> else
> ifneq ($(findstring 8.1,$(VERSION)),)
> USE_VERSION=81
> else
> USE_VERSION=82
> endif
> endif
> endif
> endif
> endif
>endif
>
>
>
>---------------------------(fin del mensaje)---------------------------
>TIP 5: ¿Has leído nuestro extenso FAQ?
>
> http://www.postgresql.org/files/documentation/faqs/FAQ.html

Buenas de nuevo, solo comunicar que ya he podido instalar postgis, el fallo
exacto no lo sé, quizás por deducción creo que pudo deberse a que tener
instalado pgadminIII o algún problema con el usuario postgres. Digo esto por
que por segunda vez volví a instalar postgresql desde cero, desinstalando
previamente pgadminIII y elminando del sistema el usuario postgres (aunque
posteriormente lo volví a crear), y hasta el momento no he tenido ningún
error. Muchas gracias por vuestro tiempo y sobre todo al de Miguel de la
Fuente; espero que mi experiencia ayude a alguien en el futuro. Un saludo!

---------------------------(fin del mensaje)---------------------------
TIP 2: puedes desuscribirte de todas las listas simultáneamente
(envíe "unregister TuDirecciónDeCorreo" a majordomo(at)postgresql(dot)org)


---------------------------------
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
Probalo ya!

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jaime Casanova 2006-08-05 05:20:19 Re: Traduccion de documentacion fue:(Cursores)
Previous Message ernesto contreras 2006-08-04 14:24:23 Re: Pequeño problema en restore