unable to create postgis extension ERROR: could not access file “$libdir/postgis-2.0”: No such file or directory

微笑、不失礼 提交于 2019-12-08 04:26:42

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!