无法创建postgis扩展名错误:无法访问文件" $ libdir / postgis-2.0":没有这样的文件或目录

时间:2014-12-19 06:19:48

标签: macos postgresql postgis psql postgresql-9.3

当我尝试运行此命令时

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。我需要修复此问题才能成功运行迁移文件。任何帮助都会非常感激。

0 个答案:

没有答案