I did the following:<br><br>- changed the LD_LIBRARY_PATH setting in the start() function of the postgresql-8.4 script in /etc/init.d to include /usr/lib:/usr/local/lib. <br>- stopped and started postgresql-8.4. <br>- ran the postgis.sql file and it ran successfully<br>
- ran the spatial_ref_sys.sql and it ran successfully<br><br>Thanks,  everyone!<br><br>Mark<br><br><div class="gmail_quote">On Thu, Sep 10, 2009 at 6:24 AM, Mark Cave-Ayland <span dir="ltr"><<a href="mailto:mark.cave-ayland@siriusit.co.uk">mark.cave-ayland@siriusit.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mark Vantzelfde wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Mark, not sure what you mean by "tweak your PostgreSQL startup script". Happy to try that if I did.<br>
<br></div>
I copied the <a href="http://postgis-1.4.so" target="_blank">postgis-1.4.so</a> <<a href="http://postgis-1.4.so" target="_blank">http://postgis-1.4.so</a>> lib from my PostGIS build area to /opt/PostgreSQL/8.4/lib/postgresql. No help<div class="im">
<br>
<br>
I checked and the geos/proj.4 libs appear to be in /usr/local/lib.<br>
<br>
I set LD_LIBRARY_PATH=/usr/PostGIS/postgis-1.4.0/postgis:/usr/local/lib:/usr/lib<br>
No help<br>
</div></blockquote>
<br>
The reason you need to tweak the statup script is because if you start PostgreSQL using "service postgresql start" or "/etc/init.d/postgresql start" then the script will switch to the postgres user in order to launch the server.<br>

<br>
Hence even if you set your LD_LIBRARY_PATH as above and restart PostgreSQL, this will only affect the current user and will not be propagated to the postgres user. So you'll need to alter your startup script to ensure that LD_LIBRARY_PATH is being set correctly for the postgres user when PostgreSQL is launched.<div>
<div></div><div class="h5"><br>
<br>
<br>
HTH,<br>
<br>
Mark.<br>
<br>
-- <br>
Mark Cave-Ayland - Senior Technical Architect<br>
PostgreSQL - PostGIS<br>
Sirius Corporation plc - control through freedom<br>
<a href="http://www.siriusit.co.uk" target="_blank">http://www.siriusit.co.uk</a><br>
t: +44 870 608 0063<br>
<br>
Sirius Labs: <a href="http://www.siriusit.co.uk/labs" target="_blank">http://www.siriusit.co.uk/labs</a><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><br clear="all"><br>-- <br>Mark Vantzelfde<br>NetMasters, Inc.<br>