Re: Desesperado con postgis

From: Edu Montaña <edumon20(at)hotmail(dot)com>
To: jmdelafuente(at)yahoo(dot)com(dot)ar, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Desesperado con postgis
Date: 2006-08-04 07:18:22
Message-ID: BAY110-F23581374F1C4EA04EB0016D5500@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

>From: Miguel de la Fuente <jmdelafuente(at)yahoo(dot)com(dot)ar>
>To: Edu Montaña <edumon20(at)hotmail(dot)com>
>Subject: Re: [pgsql-es-ayuda] Desesperado con postgis
>Date: Thu, 3 Aug 2006 11:00:36 -0300 (ART)
>
>
>
>Edu Montaña <edumon20(at)hotmail(dot)com> 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

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Edu Montaña 2006-08-04 10:20:57 Re: Desesperado con postgis
Previous Message Mario Gonzalez 2006-08-04 03:31:53 Re: Traduccion de documentacion fue:(Cursores)