Hi Mark,<br><br>Thanks for the quick response.&nbsp; I&#39;ve tried what you suggested but to no avail.&nbsp; 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.&nbsp; 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&#39;t think any expansion is actually being done since the timestamp on these files is quite old - so they&#39;re just being unpacked to this dir).&nbsp; The liblwgeom files here get unpacked this libdir - i.e. /usr/lib64<br>
<br>I&#39;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&nbsp; </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 &lt;<a href="mailto:mark.cave-ayland@siriusit.co.uk">mark.cave-ayland@siriusit.co.uk</a>&gt; 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&#39;ve used these via yast2 to upgrade everything from 8.2 to 8.3 + installed proj, geos and postgis using these. &nbsp;I&#39;m still getting the, same error when I run lwpostgis.sql - i.e.:<br>

<br>
psql:lwpostgis.sql:44: NOTICE: &nbsp;type &quot;histogram2d&quot; is not yet defined<br>
DETAIL: &nbsp;Creating a shell type definition.<br>
psql:lwpostgis.sql:44: ERROR: &nbsp;incompatible library &quot;/usr/lib64/liblwgeom.so.1.3&quot;: version mismatch<br>
DETAIL: &nbsp;Server is version 8.3, library is version 8.2.<br>
<br>
- this suggests to me that you might be right, Mark. &nbsp;I&#39;m not sure how to check, however, what postgres install has been picked up by ./configure - I can&#39;t spot anything in the output from the make file - it does display DUSEVERSION=83 which I think means its using the proper version. &nbsp;Is there anything else I can check. &nbsp;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 &#39;GEOS2LWGEOM&#39;:<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 &#39;polygonize_garray&#39;:<br>
lwgeom_geos_c.c:3404: warning: passing argument 1 of &#39;GEOSPolygonize&#39; from incompatible pointer type<br>
lwgeom_geos_c.c: In function &#39;LWGEOM_buildarea&#39;:<br>
lwgeom_geos_c.c:3554: warning: passing argument 1 of &#39;GEOSPolygonize&#39; 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 &#39;CHIP_in&#39;:<br>
lwgeom_chip.c:128: warning: format &#39;%d&#39; expects type &#39;int&#39;, but argument 4 has type &#39;long unsigned int&#39;<br>
shpopen.c:176: warning: &#39;rcsid&#39; defined but not used<br>
dbfopen.c:206: warning: &#39;rcsid&#39; 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>