当我尝试运行此命令时
sudo -u postgres psql -h localhost -d template_postgis -f /Users/MyUser/postgis-2.0.6/postgis/postgis.sql
我收到此错误
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
我在mac osx上使用带有rails 4的postgresql 9.1。我需要修复此问题才能成功运行迁移文件。任何帮助都会非常感激。