Hello List,<br><br>I've some problems during install postgis1.3.3 on Ubuntu-6.06-Server with PostgreSQL-8.2.7.<br>When I try to run the lwpostgis.sql I get the following massage:<br><br><pre>BEGIN<br>psql:/usr/local/pgsql/share/lwpostgis.sql:45: NOTICE:  type "histogram2d"<br>is not yet defined<br>DETAIL:  Creating a shell type definition.<br>psql:/usr/local/pgsql/share/lwpostgis.sql:45: ERROR:  incompatible library<br>"/usr/local/pgsql/lib/liblwgeom.so": missing magic block<br>HINT:  Extension libraries are required to use the PG_MODULE_MAGIC macro.</pre><br>Searching the mailing list I found many topics with the same problem. Some guys advised to insert the following lines in one (?!) modul:<br><pre>/*#include "pgmagic.h"*/<br>#ifdef PG_MODULE_MAGIC<br>PG_MODULE_MAGIC;<br>#endif<br><br>So I checked the lwgeom_pg.c in the contrib dir of PostgreSQL /postgresql-8.2.7/cpntrib/postgres-1.3.3/lwgeom<br>and these lines are allready written there.<br><br>What should I do / check next? Did I made any mistakes by installing PostgreSQL and PostGIS via selfcompiling and installing?<br>Before I installed these versions, PostgreSQL-8.1 was installed via apt-get and removed.<br></pre><br>Thanks for any help.<br>Cheers,<br><br>Christian<br><br>++++++++++++++++++++++++++++++++++++++++++++++<br>Christian Gadge<br><br>Datenmanagement / <br>Department Stadtökologie , Umweltplanung und Verkehr<br><br>Helmholtz-Zentrum für Umweltforschung GmbH - UFZ<br>Permoserstraße 15 I 04318 Leipzig<br>Telefon +49 (0)341 235-1730<br>christian.gadge@ufz.de<br><br>http://www.ufz.de<br><br>Das UFZ hat einen neuen Namen: Helmholtz-Zentrum für Umweltforschung GmbH - UFZ<br><br>Sitz der Gesellschaft: Leipzig<br>Registergericht: Amtsgericht Leipzig<br>Handelsregister Nr. B 4703<br>Vorsitzender des Aufsichtsrats: MinDirig Hartmut F. Grübel<br>Wissenschaftlicher Geschäftsführer: Prof. Dr. Georg Teutsch<br>Administrativer Geschäftsführer: Dr. Andreas Schmidt<br>++++++++++++++++++++++++++++++++++++++++++++++<br>