Hi everyone,
again I can't make GEOS work with my installation.
I give you more info on my current setup, I hope that will be enough to
find what's wrong.
I prefer to give more info than not enough ;)
Thank you if you take some time to read it :)
First the librairies found in the postgis/lib folder.
ls ../postgis/lib/
liblwgeom.so liblwgeom.so.1 liblwgeom.so.1.2
Is something missing?
Here's a sample of what's in my paths (relevant to postgis)
echo $LD_LIBRARY_PATH
/data/ulysse/postgis_geos/PROJ4/lib:/data/ulysse/postgis_geos/GEOS/lib:/data/ulysse/postgis_geos/postgresql-8.2.4/lib
echo $PATH
/data/ulysse/postgis_geos/PROJ4/bin:/data/ulysse/postgis_geos/GEOS/bin:/data/ulysse/postgis_geos/postgresql-8.2.4/bin
Libraies in postgres/lib (don't know if they are relevant)
ls ../postgresql-8.2.4/lib/
ascii_and_mic.so euc_tw_and_big5.so libecpg.so.5
libecpg_compat.so.2.2 libpgtypes.so.2.2 pgxs
utf8_and_euc_cn.so utf8_and_gbk.so utf8_and_uhc.so
cyrillic_and_mic.so latin2_and_win1250.so libecpg.so.5.2
libpgport.a libpq.a plpgsql.so
utf8_and_euc_jp.so utf8_and_iso8859.so utf8_and_win.so
euc_cn_and_mic.so latin_and_mic.so libecpg_compat.a
libpgtypes.a libpq.so utf8_and_ascii.so
utf8_and_euc_kr.so utf8_and_iso8859_1.so
euc_jp_and_sjis.so libecpg.a libecpg_compat.so
libpgtypes.so libpq.so.5 utf8_and_big5.so
utf8_and_euc_tw.so utf8_and_johab.so
euc_kr_and_mic.so libecpg.so libecpg_compat.so.2
libpgtypes.so.2 libpq.so.5.0 utf8_and_cyrillic.so
utf8_and_gb18030.so utf8_and_sjis.so
Here is the end of the "make" command. You can see that the flags seems
all right.
/data/ulysse/postgis_geos/PROJ4/include -DUSE_PROJ
-I/data/ulysse/postgis_geos/postgresql-8.2.4/include/server
-DAUTOCACHE_BBOX=1 -DUSE_STATS -Wall -g -O2 -fPIC -fexceptions
-DUSE_GEOS -I/data/ulysse/postgis_geos/GEOS/include -c -o
lwgeom_sqlmm.o lwgeom_sqlmm.c
gcc -DUSE_VERSION=82 -DPOSTGIS_LIB_VERSION='"1.2.1"'
-DPOSTGIS_VERSION='"1.2 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.2.1"' -DPOSTGIS_BUILD_DATE='"2007-07-26
15:18:41"' -I/data/ulysse/postgis_geos/PROJ4/include -DUSE_PROJ
-I/data/ulysse/postgis_geos/postgresql-8.2.4/include/server
-DAUTOCACHE_BBOX=1 -DUSE_STATS -Wall -g -O2 -fPIC -fexceptions
-DUSE_GEOS -I/data/ulysse/postgis_geos/GEOS/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 -shared -L/data/ulysse/postgis_geos/GEOS/lib -lgeos_c
-L/data/ulysse/postgis_geos/PROJ4/lib -lproj -o liblwgeom.so.1.2
rm -f liblwgeom.so.1
ln -s liblwgeom.so.1.2 liblwgeom.so.1
rm -f liblwgeom.so
ln -s liblwgeom.so.1.2 liblwgeom.so
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/lwgeom'
make -C loader
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=82
-DPOSTGIS_VERSION='"1.2.1"' -c -o shpopen.o shpopen.c
shpopen.c:176: warning: `rcsid' defined but not used
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=82
-DPOSTGIS_VERSION='"1.2.1"' -c -o dbfopen.o dbfopen.c
dbfopen.c:206: warning: `rcsid' defined but not used
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=82
-DPOSTGIS_VERSION='"1.2.1"' -c -o getopt.o getopt.c
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=82
-DPOSTGIS_VERSION='"1.2.1"' -c -o shp2pgsql.o shp2pgsql.c
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=82
-DPOSTGIS_VERSION='"1.2.1"' shpopen.o dbfopen.o getopt.o shp2pgsql.o -o
shp2pgsql
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=82
-DPOSTGIS_VERSION='"1.2.1"'
-I/data/ulysse/postgis_geos/postgresql-8.2.4/include -c pgsql2shp.c
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=82
-DPOSTGIS_VERSION='"1.2.1"' -c -o PQunescapeBytea.o PQunescapeBytea.c
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=82
-DPOSTGIS_VERSION='"1.2.1"' shpopen.o dbfopen.o getopt.o
PQunescapeBytea.o pgsql2shp.o
-L/data/ulysse/postgis_geos/postgresql-8.2.4/lib -lpq -o pgsql2shp
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
make -C utils
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/utils'
chmod +x postgis_restore.pl create_undef.pl postgis_proc_upgrade.pl
profile_intersects.pl test_estimation.pl test_joinestimation.pl
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/utils'
make -C extras/template_gis
make[1]: Entering directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
cat createdb.postgis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
createdb.postgis; cat mktemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis; cat mktemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis.sh; cat postgis_env.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgis_env.sh; cat postgres_lib.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgres_lib.sh; cat rmtemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis; catrmtemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis.sh;
make[1]: Leaving directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
the root of the programs should be these:
/data/ulysse/postgis_geos/postgis
/data/ulysse/postgis_geos/GEOS
/data/ulysse/postgis_geos/PROJ4
/data/ulysse/postgis_geos/postgresql-8.2.4
and now the "make install" something is misplaced?
make -C lwgeom
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/lwgeom'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/lwgeom'
make -C loader
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
make -C utils
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/utils'
chmod +x postgis_restore.pl create_undef.pl postgis_proc_upgrade.pl
profile_intersects.pl test_estimation.pl test_joinestimation.pl
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/utils'
make -C extras/template_gis
make[1]: Entering directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
cat createdb.postgis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
createdb.postgis; cat mktemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis; cat mktemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis.sh; cat postgis_env.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgis_env.sh; cat postgres_lib.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgres_lib.sh; cat rmtemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis; catrmtemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis.sh;
make[1]: Leaving directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
make -C lwgeom install
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/lwgeom'
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
liblwgeom.so.1.2 /data/ulysse/postgis_geos/postgis/lib/liblwgeom.so.1.2
cd /data/ulysse/postgis_geos/postgis/lib && \
rm -f liblwgeom.so.1 && \
ln -s liblwgeom.so.1.2 liblwgeom.so.1
cd /data/ulysse/postgis_geos/postgis/lib && \
rm -f liblwgeom.so && \
ln -s liblwgeom.so.1.2 liblwgeom.so
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
../lwpostgis.sql /data/ulysse/postgis_geos/postgis/share/lwpostgis.sql
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
../lwpostgis_upgrade.sql
/data/ulysse/postgis_geos/postgis/share/lwpostgis_upgrade.sql
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
../spatial_ref_sys.sql
/data/ulysse/postgis_geos/postgis/share/spatial_ref_sys.sql
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/lwgeom'
make -C loader install
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755 pgsql2shp
/data/ulysse/postgis_geos/postgis/bin/pgsql2shp
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755 shp2pgsql
/data/ulysse/postgis_geos/postgis/bin/shp2pgsql
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
make -C extras/template_gis install
make[1]: Entering directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
cat createdb.postgis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
createdb.postgis; cat mktemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis; cat mktemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis.sh; cat postgis_env.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgis_env.sh; cat postgres_lib.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgres_lib.sh; cat rmtemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis; catrmtemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis.sh;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
createdb.postgis
/data/ulysse/postgis_geos/postgis/bin/createdb.postgis;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m
755mktemplate_gis /data/ulysse/postgis_geos/postgis/bin/mktemplate_gis;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
mktemplate_gis.sh
/data/ulysse/postgis_geos/postgis/bin/mktemplate_gis.sh;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
postgis_env.sh /data/ulysse/postgis_geos/postgis/bin/postgis_env.sh;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c-m 755
postgres_lib.sh /data/ulysse/postgis_geos/postgis/bin/postgres_lib.sh;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
rmtemplate_gis /data/ulysse/postgis_geos/postgis/bin/rmtemplate_gis;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
rmtemplate_gis.sh /data/ulysse/postgis_geos/postgis/bin/rmtemplate_gis.sh;
rm -f /data/ulysse/postgis_geos/postgis/bin/mktemplate_gis; ln -s
/data/ulysse/postgis_geos/postgis/bin/mktemplate_gis
/data/ulysse/postgis_geos/postgis/bin; rm -f
/data/ulysse/postgis_geos/postgis/bin/rmtemplate_gis; ln -s
/data/ulysse/postgis_geos/postgis/bin/rmtemplate_gis
/data/ulysse/postgis_geos/postgis/bin; rm -f
/data/ulysse/postgis_geos/postgis/bin/createdb.postgis; ln -s
/data/ulysse/postgis_geos/postgis/bin/createdb.postgis
/data/ulysse/postgis_geos/postgis/bin;
cp profile /data/ulysse/postgis_geos/postgis/etc/default/postgis
rm -f /data/ulysse/postgis_geos/postgis/bin/profile
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
createdb.postgis.1
/data/ulysse/postgis_geos/postgis/share/man/man1/createdb.postgis.1;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
mktemplate_gis.1
/data/ulysse/postgis_geos/postgis/share/man/man1/mktemplate_gis.1;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
rmtemplate_gis.1
/data/ulysse/postgis_geos/postgis/share/man/man1/rmtemplate_gis.1;
make[1]: Leaving directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
[EMAIL PROTECTED]:/data/ulysse/postgis_geos/postgis-1.2.1$ cd ..
[EMAIL PROTECTED]:/data/ulysse/postgis_geos$ rm -r postgis
rm: descend into directory `postgis'?
[EMAIL PROTECTED]:/data/ulysse/postgis_geos$ rm -rf postgis
[EMAIL PROTECTED]:/data/ulysse/postgis_geos$ cd postgis-1.2.1
[EMAIL PROTECTED]:/data/ulysse/postgis_geos/postgis-1.2.1$ make install
make -C lwgeom
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/lwgeom'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/lwgeom'
make -C loader
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
make -C utils
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/utils'
chmod +x postgis_restore.pl create_undef.pl postgis_proc_upgrade.pl
profile_intersects.pl test_estimation.pl test_joinestimation.pl
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/utils'
make -C extras/template_gis
make[1]: Entering directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
cat createdb.postgis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
createdb.postgis; cat mktemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis; cat mktemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis.sh; cat postgis_env.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgis_env.sh; cat postgres_lib.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgres_lib.sh; cat rmtemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis; catrmtemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis.sh;
make[1]: Leaving directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
make -C lwgeom install
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/lwgeom'
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
liblwgeom.so.1.2 /data/ulysse/postgis_geos/postgis/lib/liblwgeom.so.1.2
cd /data/ulysse/postgis_geos/postgis/lib && \
rm -f liblwgeom.so.1 && \
ln -s liblwgeom.so.1.2 liblwgeom.so.1
cd /data/ulysse/postgis_geos/postgis/lib && \
rm -f liblwgeom.so && \
ln -s liblwgeom.so.1.2 liblwgeom.so
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
../lwpostgis.sql /data/ulysse/postgis_geos/postgis/share/lwpostgis.sql
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
../lwpostgis_upgrade.sql
/data/ulysse/postgis_geos/postgis/share/lwpostgis_upgrade.sql
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
../spatial_ref_sys.sql
/data/ulysse/postgis_geos/postgis/share/spatial_ref_sys.sql
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/lwgeom'
make -C loader install
make[1]: Entering directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755 pgsql2shp
/data/ulysse/postgis_geos/postgis/bin/pgsql2shp
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755 shp2pgsql
/data/ulysse/postgis_geos/postgis/bin/shp2pgsql
make[1]: Leaving directory `/data/ulysse/postgis_geos/postgis-1.2.1/loader'
make -C extras/template_gis install
make[1]: Entering directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
cat createdb.postgis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
createdb.postgis; cat mktemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis; cat mktemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
mktemplate_gis.sh; cat postgis_env.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgis_env.sh; cat postgres_lib.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
postgres_lib.sh; cat rmtemplate_gis.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis; catrmtemplate_gis.sh.in | sed -e
s:@bindir@:/data/ulysse/postgis_geos/postgis/bin:g -e
s:@datadir@:/data/ulysse/postgis_geos/postgis/share:g -e
s:@prefix@:/data/ulysse/postgis_geos/postgis:g -e s:@SONAME@:1:g >
rmtemplate_gis.sh;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
createdb.postgis
/data/ulysse/postgis_geos/postgis/bin/createdb.postgis;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m
755mktemplate_gis /data/ulysse/postgis_geos/postgis/bin/mktemplate_gis;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
mktemplate_gis.sh
/data/ulysse/postgis_geos/postgis/bin/mktemplate_gis.sh;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
postgis_env.sh /data/ulysse/postgis_geos/postgis/bin/postgis_env.sh;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c-m 755
postgres_lib.sh /data/ulysse/postgis_geos/postgis/bin/postgres_lib.sh;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
rmtemplate_gis /data/ulysse/postgis_geos/postgis/bin/rmtemplate_gis;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 755
rmtemplate_gis.sh /data/ulysse/postgis_geos/postgis/bin/rmtemplate_gis.sh;
rm -f /data/ulysse/postgis_geos/postgis/bin/mktemplate_gis; ln -s
/data/ulysse/postgis_geos/postgis/bin/mktemplate_gis
/data/ulysse/postgis_geos/postgis/bin; rm -f
/data/ulysse/postgis_geos/postgis/bin/rmtemplate_gis; ln -s
/data/ulysse/postgis_geos/postgis/bin/rmtemplate_gis
/data/ulysse/postgis_geos/postgis/bin; rm -f
/data/ulysse/postgis_geos/postgis/bin/createdb.postgis; ln -s
/data/ulysse/postgis_geos/postgis/bin/createdb.postgis
/data/ulysse/postgis_geos/postgis/bin;
cp profile /data/ulysse/postgis_geos/postgis/etc/default/postgis
rm -f /data/ulysse/postgis_geos/postgis/bin/profile
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
createdb.postgis.1
/data/ulysse/postgis_geos/postgis/share/man/man1/createdb.postgis.1;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
mktemplate_gis.1
/data/ulysse/postgis_geos/postgis/share/man/man1/mktemplate_gis.1;
/data/ulysse/postgis_geos/postgis-1.2.1/install-sh -c -m 644
rmtemplate_gis.1
/data/ulysse/postgis_geos/postgis/share/man/man1/rmtemplate_gis.1;
make[1]: Leaving directory
`/data/ulysse/postgis_geos/postgis-1.2.1/extras/template_gis'
I hope it helps to figure out what's wrong.
Thank you very much
Marc
Mark Cave-Ayland wrote:
On Tue, 2007-07-24 at 19:50 +0000, Marc Desharnais wrote:
Hi Mark,
I did a make install. Maybe someone can tell me if I missed something to
make GEOS work properly with Postgis.
But my Postgresql is not installed in a default directory. So maybe
there is a problem with that.
What library should I check to be sure that it's well installed?
Marc
Hi Marc,
One of the first things to check is that when you do a "make", you see
the -DUSE_GEOS argument in the gcc command lines being output to the
screen. That's the part that tells the compiler to include the GEOS
code.
Secondly, check your installation paths. Are you connecting to the
correct PostgreSQL instance if there are multiple PostgreSQL
installations on your server? According to the configure output you
included, the pg_config being used is
in /data/ulysse/postgis_geos/postgresql-8.2.4/bin/pg_config. So that
means during a "make install", the liblwgeom.so library is being placed
in the location given by:
/data/ulysse/postgis_geos/postgresql-8.2.4/bin/pg_config --libdir
(I also noticed that PROJ is not being included either, so this is not
just a GEOS problem.)
Finally, for the PostgreSQL server to find these libraries, you'll need
to make sure that the LD_LIBRARY_PATH environment variable is set for
the user under which the PostgreSQL server runs to find the directories
containing all the .so files - you'll need something like this:
LD_LIBRARY_PATH=/data/ulysse/postgis_geos/GEOS/lib:/data/ulysse/postgis_geos/PROJ4/lib
HTH,
Mark.
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users