ERROR: could not access file “$libdir/postgis-2.0” postgresapp

不羁的心 提交于 2020-01-05 05:00:25

问题


I am running postgresapp 9.2.4.3 and postgis and trying to add a geometry column to a table. The postgis extension is running.

When I run:

SELECT AddGeometryColumn('public'::varchar,'gloutline'::varchar,'geom'::varchar,'4326','MULTIPOLY ON','2');

I'm getting the following errors:

ERROR:  could not access file "$libdir/postgis-2.0": No such file or directory
LINE 1: ALTER TABLE public.gloutline ADD COLUMN geom geometry(MultiP...
QUERY:  ALTER TABLE public.gloutline ADD COLUMN geom geometry(MultiPolygon, 4326)
CONTEXT:  PL/pgSQL function addgeometrycolumn(character varying,character varying,character varying,character varying,integer,character varying,integer,boolean) line 110 at EXECUTE statement
SQL statement "SELECT AddGeometryColumn('',$1,$2,$3,$4,$5,$6,$7)" PL/pgSQL function addgeometrycolumn(character varying,character varying,character varying,integer,character varying,integer,boolean) line 5 at SQL statement

回答1:


A reinstall of postgress.app including the application support files fixed the problem.



来源:https://stackoverflow.com/questions/18499728/error-could-not-access-file-libdir-postgis-2-0-postgresapp

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