Hello List! I'm new in processing spatial data, but according to all the free tools
around I am really excited to get into that stuff (Wow!, there is OpenStreetMap.org,
too!!) I have a prob building postgis on suse. My system is a postgres/postgis virgin.
The installation of postgreSQL, Geos, und proj went well. Now I'm trying to install
postgis, but the gcc seems to have problems while using the "-lproj" option:
~/postgresql-8.3.3/contrib/postgis-1.3.3> gmake
...
gcc -DUSE_VERSION=83 -DPOSTGIS_LIB_VERSION='"1.3.3"' -DPOSTGIS_VERSION='"1.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"' -DPOSTGIS_SCRIPTS_VERSION='"1.3.3"' -DPOSTGIS_BUILD_DATE='"2008-06-27 16:05:18"' -I/usr/bin/include -DUSE_PROJ -I/usr/local/pgsql/include/server -DAUTOCACHE_BBOX=1 -DUSE_STATS -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -DGEOS_VERNUM=30 -I/usr/local/include -shared -Wl,-soname,liblwgeom.so.1 measures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o lwpoly.o lwmpoint.o lwmline.o lwmpoly.o lwcollection.o wktunparse.o lwgparse.o wktparse.tab.o lex.yy.o vsprintf.o liblwgeom.o lwgeom_pg.o lwgeom_debug.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_geos_c.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o stringBuffer.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o
long_xact.o lwcurve.o lwcompound.o lwcurvepoly.o lwmcurve.o lwmsurface.o
lwgeom_sqlmm.o lwgeom_rtree.o -shared -L/usr/local/lib -lgeos_c -L/usr/lib
-lproj -o liblwgeom.so.1.3
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libproj.so when searching for -lproj
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libproj.a when searching for -lproj
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libproj.so when searching for -lproj
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libproj.a when searching for -lproj
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
cannot find -lproj
collect2: ld returned 1 exit status
gmake[1]: *** [liblwgeom.so.1.3] Error 1
gmake[1]: Leaving directory
`/home/ralf/postgresql-8.3.3/contrib/postgis-1.3.3/lwgeom'
gmake: *** [liblwgeom] Error 2
~/postgresql-8.3.3/contrib/postgis-1.3.3>
The following output comes from running configure:
~/postgresql-8.3.3/contrib/postgis-1.3.3> ./configure
...
SUMMARY
-------------------------------------------------------
HOST_OS: linux-gnu
PGSQL: /usr/local/pgsql/bin//pg_config
GEOS: /usr/local/bin/geos-config (with C-API)
(ldflags: -L/usr/local/lib)
PROJ: prefix=/usr libdir=/usr/lib
ICONV: 1
PORTNAME: linux
PREFIX: /usr/local/pgsql
EPREFIX: ${prefix}
DOC: /usr/local/pgsql/doc/contrib
DATA: ${datarootdir}
MAN: ${datarootdir}/man
BIN: /usr/local/pgsql/bin
EXT: /usr/local/pgsql/lib (\$$libdir)
-------------------------------------------------------
Searching the web said adjusting the path within Makefile.config to the Proj
lib directory; but I think these dir's are correct!?:
USE_PROJ=1
PROJ_DIR=/usr
PROJ_LIBDIR=/usr/lib
Eeeehhmmm ... HELP!?!? Thanks a lot!
--Ralf
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users