问题
When I try run this command
sudo -u postgres psql -h localhost -d template_postgis -f /Users/MyUser/postgis-2.0.6/postgis/postgis.sql
I get this error
SET
BEGIN
psql:/Users/MyUser/postgis-2.0.6/postgis/postgis.sql:49: ERROR: could not access file "$libdir/postgis-2.0": No such file or directory
psql:/Users/MyUser/postgis-2.0.6/postgis/postgis.sql:54: ERROR: current transaction is aborted, commands ignored until end of transaction block
.
.
.
psql:/Users/MyUser/postgis-2.0.6/postgis/postgis.sql:6034: ERROR: current transaction is aborted, commands ignored until end of transaction block
psql:/Users/MyUser/postgis-2.0.6/postgis/postgis.sql:6040: ERROR: current transaction is aborted, commands ignored until end of transaction block
ROLLBACK
I am using postgresql 9.1 with rails 4 on mac osx. I need to get this fixed to run migration files successfully. Any help will really be very thankful.
来源:https://stackoverflow.com/questions/27560707/unable-to-create-postgis-extension-error-could-not-access-file-libdir-postgis