Hi Mark,<br><br>Thanks for the quick response.  I've tried what you suggested but to no avail.  Observations whilst doing this:<br><br>i) If I install PostGIS from the unzipped source, via a ./configure, gmake, sudo gmake install, the  lwpostgis.sql, etc scripts get put in /usr/share and contain unexpanded $libdir variables.  The liblwgeom files end up under /usr/lib64/postgresql<br>
<br>ii) If I install PostGIS via the rpm, using the YaST2 GUI, the lwpostgis.sql, etc scripts get put in /usr/share/postgis and the $libdir variable they use is expanded to /usr/lib64 (although I don't think any expansion is actually being done since the timestamp on these files is quite old - so they're just being unpacked to this dir).  The liblwgeom files here get unpacked this libdir - i.e. /usr/lib64<br>
<br>I've not done anything out of standard for any of the installs except for configuring the postgres install using, <span style="font-style: italic; font-weight: bold;">LDFLAGS=-lstdc++ ./configure  </span>- as suggested in the setup guide I was following (see link in first mail).<br>
<br>Any other suggestions?<br><br>Thanks,<br><br>Calum.<br><br><div class="gmail_quote">On Fri, May 2, 2008 at 11:30 AM, Mark Cave-Ayland <<a href="mailto:mark.cave-ayland@siriusit.co.uk">mark.cave-ayland@siriusit.co.uk</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Calum Byrom wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Thankyou Facundo, for providing the links to the various rpms - I've used these via yast2 to upgrade everything from 8.2 to 8.3 + installed proj, geos and postgis using these.  I'm still getting the, same error when I run lwpostgis.sql - i.e.:<br>

<br>
psql:lwpostgis.sql:44: NOTICE:  type "histogram2d" is not yet defined<br>
DETAIL:  Creating a shell type definition.<br>
psql:lwpostgis.sql:44: ERROR:  incompatible library "/usr/lib64/liblwgeom.so.1.3": version mismatch<br>
DETAIL:  Server is version 8.3, library is version 8.2.<br>
<br>
- this suggests to me that you might be right, Mark.  I'm not sure how to check, however, what postgres install has been picked up by ./configure - I can't spot anything in the output from the make file - it does display DUSEVERSION=83 which I think means its using the proper version.  Is there anything else I can check.  NB, not sure if its important but when I run the build of postgis, I get the following warnings:<br>

<br>
lwgeom_geos_c.c: In function 'GEOS2LWGEOM':<br>
lwgeom_geos_c.c:2994: warning: assignment discards qualifiers from pointer target type<br>
lwgeom_geos_c.c:3003: warning: assignment discards qualifiers from pointer target type<br>
lwgeom_geos_c.c:3013: warning: assignment discards qualifiers from pointer target type<br>
lwgeom_geos_c.c:3014: warning: assignment discards qualifiers from pointer target type<br>
lwgeom_geos_c.c:3018: warning: assignment discards qualifiers from pointer target type<br>
lwgeom_geos_c.c:3019: warning: assignment discards qualifiers from pointer target type<br>
lwgeom_geos_c.c:3040: warning: assignment discards qualifiers from pointer target type<br>
lwgeom_geos_c.c: In function 'polygonize_garray':<br>
lwgeom_geos_c.c:3404: warning: passing argument 1 of 'GEOSPolygonize' from incompatible pointer type<br>
lwgeom_geos_c.c: In function 'LWGEOM_buildarea':<br>
lwgeom_geos_c.c:3554: warning: passing argument 1 of 'GEOSPolygonize' from incompatible pointer type<br>
lwgeom_geos_c.c:3597: warning: assignment discards qualifiers from pointer target type<br>
lwgeom_transform.c:207: warning: initialization from incompatible pointer type<br>
lwgeom_chip.c: In function 'CHIP_in':<br>
lwgeom_chip.c:128: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'<br>
shpopen.c:176: warning: 'rcsid' defined but not used<br>
dbfopen.c:206: warning: 'rcsid' defined but not used<br>
<br>
<br>
Thanks,<br>
<br>
Calum.<br>
</blockquote>
<br>
<br></div></div>
Hi Calum,<br>
<br>
Okay, looks like something is not quite right in your installation. For example, above it seems like liblwgeom.so has been installed under /usr/lib which is wrong - it should be installed in the postgresql lib directory which is typically under /usr/lib/pgsql/lib or /usr/lib/postgresql/lib. Did you pass in any non-standard parameters to configure?<br>

<br>
As a first course of action, I would try removing all liblwgeom files from /usr/lib64 and trying to run lwpostgis.sql again.<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
ATB,<br>
<br>
Mark.<br>
<br>
-- <br>
Mark Cave-Ayland<br>
Sirius Corporation - The Open Source Experts<br>
<a href="http://www.siriusit.co.uk" target="_blank">http://www.siriusit.co.uk</a><br>
T: +44 870 608 0063<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br>