Ubuntu 12.04, PostgreSQL-9.1 - Can't access $libdir/postgis-2.0

孤者浪人 提交于 2019-12-01 06:18:59
lontongcorp

I installed it 2.1.0SVN a while and resolved the issue without downgrading http://www.lontongcorp.com/?p=783

Basically you need to link

sudo ln -s /usr/lib/postgresql/9.2/lib/postgis-2.1.so /usr/lib/postgresql/9.2/lib/postgis-2.0
sudo ldconfig

SOLVED: Some more rooting around led me to the extensions on my PostGIS databases, which I couldn't update to 2.1.0SVN. Re-installing to PostGIS 2.0.3 solved the issue.

I had the same problem on debian with postgres 9.3 and postgis 2.1 and i solved it by re-installing the postgis-2.1, now it works properly.

I had the same problem after upgrading postgres+postgis via yum.

I solved it by upgrading the databases as mentioned on the postgis website:

-- Upgrade PostGIS (includes raster)
ALTER EXTENSION postgis 
 UPDATE TO "2.1.4";
-- Upgrade Topology
ALTER EXTENSION postgis_topology 
 UPDATE TO "2.1.4";
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!