I'm trying to get postsql and postgis to work together, but keep running into the same issue.
Using: PostgreSQL 9.2.3 (postgres.app)
when I run:
CREATE EXTENSION postgis;
ERROR: could not access file "$libdir/postgis-2.0": No such file or directory
I also get the same error when I run:
$psql -d myDB -f postgis.sql
psql:postgis.sql:49: ERROR: could not access file "$libdir/postgis-2.0": No such file or directory
When I check my $libdir
$pg_config --libdir
/Applications/Postgres.app/Contents/MacOS/lib
$pg_config --pkglibdir
/Applications/Postgres.app/Contents/MacOS/lib
And if I check the directory I find a file: postgis-2.0.so
I've been hitting my head against this for a few days and can't figure it out.