Re: Extensiones postgis

From: Espartano <espartano(dot)mail(at)gmail(dot)com>
To: "Felipe Amezquita" <felmarla(at)gmail(dot)com>
Cc: postgresayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Extensiones postgis
Date: 2007-09-12 02:41:45
Message-ID: d353bd50709111941n78676698p9f92c6d479d9026a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

2007/9/11, Felipe Amezquita <felmarla(at)gmail(dot)com>:
> Que tal amigos de lista...
> Espero se encuentre bien..
>
> Resulta que andamos instalando el postgis despues de haber instalado el
> potgres 8.1 geos 2.3 y el proj 4.5
>
> y cuando descomprimos el pauqte de postgis en esta ruta /opt/lampp/postgis-
> 1.2.1
> le damos lo siguiente
> ./configure --with-pgsql=/opt/lampp/bin/pg_config
> --with-geos=/opt/lampp/geos/bin/geos-config
> --with-proj=/opt/lampp/proj
> SUMMARY
> -------------------------------------------------------
>
> HOST_OS: linux-gnu
>
> PGSQL: /opt/lampp/bin/pg_config
> GEOS: /opt/lampp/geos/bin/geos-config (with C-API)
> (ldflags: -L/opt/lampp/geos/lib)
> PROJ: prefix=/opt/lampp/proj libdir=/opt/lampp/proj/lib
> ICONV: 1
>
> PORTNAME: linux
> PREFIX: /opt/lampp
> EPREFIX: ${prefix}
> DOC: /opt/lampp/doc/postgresql/contrib
> DATA: ${datarootdir}
> MAN: ${datarootdir}/man
> BIN: /opt/lampp/bin
> EXT: /opt/lampp/lib/postgresql (\$$libdir)
> hasta ca todo bien y cuando ejecuto el make pasa lo siguiente
> make -C lwgeom
> make[1]: Entering directory `/opt/lampp/postgis- 1.2.1/lwgeom'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/opt/lampp/postgis-1.2.1/lwgeom'
> make -C loader
> make[1]: Entering directory `/opt/lampp/postgis-1.2.1/loader'
> gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81 -DPOSTGIS_VERSION='"1.2.1"'
> shpopen.o dbfopen.o getopt.o PQunescapeBytea.o pgsql2shp.o -L/opt/lampp/lib
> -lpq -o pgsql2shp
> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
> skipping incompatible /opt/lampp/lib/libpq.so when searching for -lpq
> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
> skipping incompatible /opt/lampp/lib/libpq.a when searching for -lpq
> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
> cannot find -lpq
> collect2: ld returned 1 exit status
> make[1]: *** [pgsql2shp] Error 1
> make[1]: Leaving directory `/opt/lampp/postgis-1.2.1/loader'
> make: *** [loaderdumper] Error 2

No estoy totalmente seguro porque nunca he usado postgis pero ... me
parece que te hace falta instalar la libreria libpq-fe, lo digo por el
mensaje que dice:

> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
> cannot find -lpq

fijate en "cannot find -lpq"

>
> por favor necesito de su ayuda
>
> Mi sistema operativo suse 10.1
>
> --
> Ing Sistemas y Telecomunicaciones
> Luis Felipe Lopez Amezquita
> 3008217523 - 3146286237 - 3173160602

--
"Linux is for people who hate Windows, BSD is for people who love UNIX".
"Social Engineer -> Because there is no patch for human stupidity"
"The Unix Guru's View of Sex unzip ; strip ; touch ; grep ; finger ;
mount ; fsck ; more ; yes ; umount ; sleep."
"Documentation is like sex: when it is good, it is very, very good;
and when it is bad, it is better than nothing."

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Miguel Rodríguez Penabad 2007-09-12 07:17:50 Re: Ayuda con dblink
Previous Message FRANZ RICHARD MARIN VASQUEZ 2007-09-12 02:29:21 ayuda DBLINK