<div>Hi list,</div><div><br></div><div>I'm having problems enabling postgis on a mac running Mountain Lion. Most likely this is due to my absolute lack of experience with postgresql, but I've read the documentation, searched the web and so far, no luck.</div>
<div><br></div><div>This is what I've done</div><div><br></div><div>Installed GDAL_Complete-1.9.dmg, PostgreSQL-9.1.4-1.dmg and PostGIS-2.0.1-1.dmg from kyngchaos (in this order)</div><div><br></div><div>During installation, I was not prompted for a postgres password, hence I had problems when connecting as user (role) postgres.</div>
<div><br></div><div>In pgadmin I created a new role as superuser.</div><div><br></div><div>----------</div><div>From PostGIS documentation, I tried (in the psql console plugin…</div><div><br></div><div>(p.14 in PostGIS 2.0.0 Manual)</div>
<div><br></div><div>createdb db1</div><div>createlang plpgsql db1</div><div>psql -d db1 -f postgis.sql</div><div>psql -d db1 -f spatial_ref_sys.sql</div><div>psql -d db1 -f postgis_comments.sql</div><div>psql -d db1 -f rtpostgis.sql</div>
<div>psql -d db1 -f raster_comments.sql</div><div>psql -d db1 -f topology/topology.sql</div><div>psql -d db1 -f topology/topology_comments.sql</div><div>psql -d db1 -f legacy.sql</div><div><br></div><div>Nothing new: no postgis functions...</div>
<div><br></div><div>Then Using the psql console plugin I typed:</div><div>(p. 15PostGIS 2.0.0 Manual)</div><div>psql -d db -c "CREATE EXTENSION postgis;"</div><div>psql -d db -c "CREATE EXTENSION postgis_topology;"</div>
<div><br></div><div>Again no good.</div><div><br></div><div>Then I pasted the code in from postgis.sql (from \usr\…contrib\postgis2.0 directly in a sql window in pgadmin…</div><div><br></div><div>I got the error message: "ERROR:  could not access file "$libdir/postgis-2.0": No such file or directory"</div>
<div>----------</div><div><br></div><div>I am aware this is a newby kind of problem, and I apologize for that, but some help would be really really great.</div><div>Thanks,</div><div>Pedro</div>