10/08/2009, 10:55
|
| | Fecha de Ingreso: agosto-2009
Mensajes: 1
Antigüedad: 15 años, 4 meses Puntos: 0 | |
Respuesta: PostgreSQL + PostGIS hola que tal, soy nueva en este foro y necesito ayuda........
estoy instalando postgres y postgis en solaris en una zona sun Sparc, pero
tengo un error con la instalacion de postgis:
copiar los archivos a /opt
descomprimir
gunzip flex_2_5.gz
gunzip gcc_3_4_.gz
gunzip libiconv.gz
gunzip make_3_8.gz
agregar paketes
pkgadd -d flex... (/usr/local/doc/flex/examples/manual/numbers.lex)
Installation of <SMCflex> was successful.
Installation of <SMCgcc> was successful.
Installation of <SMCliconv> was successful.
Installation of <SMCmake> was successful.
agregar gcc al PATH
vi /etc/profile
PATH=PATH:/usr/local/bin (PATH=.:/opt/postgres/8.4-community/lib/64:/opt/postgres/8.4-community/bin/64:$PATH:/usr/local/bin
)
cargar el nuevo valor de la variable
source /etc/profile
copiar postgis a opt
cp postgis_.gz /opt
desempaketar
POSTGIS
cp postgis-1.3.6.tar.gz /opt/
cd /opt/
gunzip postgis-1.3.6.tar.gz
tar -xvf postgis-1.3.6.tar
cd postgis-1.3.6/
./configure
*******************************
SUMMARY
-------------------------------------------------------
HOST_OS: solaris2.10
PGSQL: /opt/postgres/8.4-community/bin/64/pg_config
ICONV: 1 -liconv
PORTNAME: solaris
PREFIX: /usr/postgres/8.4
EPREFIX: ${prefix}
DOC: /usr/postgres/8.4/doc/contrib
DATA: ${datarootdir}
MAN: ${datarootdir}/man
BIN: /opt/postgres/8.4-community/bin/64
EXT: /opt/postgres/8.4-community/lib/64 (\$$libdir)
-------------------------------------------------------
****************************************
make
**************************************
make -C lwgeom
make[1]: Entering directory `/opt/postgis-1.3.6/lwgeom'
cpp -P -traditional-cpp -DUSE_VERSION=84 lwpostgis.sql.in | sed -e 's:@MODULE_FILENAME@:\$libdir/liblwgeom:g;s:@POSTGIS_VERSION@:1.3 USE_GEOS=0 USE_PROJ=0 USE_STATS=1:g;s:@POSTGIS_SCRIPTS_VERSION@:1.3.6:g; s/@POSTGIS_BUILD_DATE@/2009-08-06 18:43:58/g' | grep -v '^#' > ../lwpostgis.sql
cpp -P -traditional-cpp -DUSE_VERSION=84 lwpostgis.sql.in | sed -e 's#@MODULE_FILENAME@#\$libdir/liblwgeom#g;s#@POSTGIS_VERSION@#1.3 USE_GEOS=0 USE_PROJ=0 USE_STATS=1#g;s#@POSTGIS_SCRIPTS_VERSION@#1.3.6#g; s/@POSTGIS_BUILD_DATE@/2009-08-06 18:43:58/g' | grep -v '^#' > ../regress/lwpostgis.sql
/usr/bin/perl ../utils/postgis_proc_upgrade.pl ../lwpostgis.sql > ../lwpostgis_upgrade.sql
gcc -DUSE_VERSION=84 -DPOSTGIS_LIB_VERSION='"1.3.6"' -DPOSTGIS_VERSION='"1.3 USE_GEOS=0 USE_PROJ=0 USE_STATS=1"' -DPOSTGIS_SCRIPTS_VERSION='"1.3.6"' -DPOSTGIS_BUILD_DATE='"2009-08-06 18:43:58"' -I/opt/postgres/8.4-community/include/server -DAUTOCACHE_BBOX=1 -DUSE_STATS -Wall -g -O2 -fPIC -fexceptions -c -o measures.o measures.c
*******************************
***pero al final de este mensaje mando errores:
///////////////////////////////////////////////////
/8.4-community/lib/64 -lpq -o pgsql2shp
ld: fatal: file /opt/postgres/8.4-community/lib/64/libpq.so: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to pgsql2shp
collect2: ld returned 1 exit status
make[1]: *** [pgsql2shp] Error 1
make[1]: Leaving directory `/opt/postgis-1.3.6/loader'
make: *** [loaderdumper] Error 2
////////////////////////////////////////////////////////
bash-3.00# make install
make -C lwgeom
make[1]: Entering directory `/opt/postgis-1.3.6/lwgeom'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/postgis-1.3.6/lwgeom'
make -C loader
make[1]: Entering directory `/opt/postgis-1.3.6/loader'
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=84 -DPOSTGIS_VERSION='"1.3.6"' shpopen.o dbfopen.o getopt.o PQunescapeBytea.o pgsql2shp.o -liconv -L/opt/postgres/8.4-community/lib/64 -lpq -o pgsql2shp
ld: fatal: file /opt/postgres/8.4-community/lib/64/libpq.so: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to pgsql2shp
collect2: ld returned 1 exit status
make[1]: *** [pgsql2shp] Error 1
make[1]: Leaving directory `/opt/postgis-1.3.6/loader'
make: *** [loaderdumper] Error 2
bash-3.00#
lo anterior son los pasos y comandos ke ia aplike..
espero alguien me pueda ayudar, porfavor, el tiempo se me agota y tengo ke terminar sin errores.... ayudaaaaaaaaaaaaaaaaaaaaaaaaa |