Monday, 1 August 2016

postgresql - PostGIS ERROR: could not load library "/usr/lib/postgresql91/lib64/postgis-2.0.so"


OS is openSUSE 12.1, PostgreSQL - 9.1, PostGIS - 2.0. Postgre/PostGIS are installed from Application:Geo repository.


After recent updates when I try to connect to my database I get the following error:


    ERROR:  could not load library "/usr/lib/postgresql91/lib64/postgis-2.0.so":
/usr/lib/postgresql91/lib64/postgis-2.0.so: undefined symbol: pj_get_spheroid_defn

I searched the web for this error (hint-1, hint-2) and seems that it may have something to do with ld.so.config (or ldconfig command). But I can't figure out what I have to do in my case.



Answer




Thanks to MikeToews I was able to fix this issue. PostGIS 2.0 in openSUSE depends on libproj0 and its version must be >=4.8. Somehow package manager didn't notify me about new version available for the libproj0 so I checked its newer version manually via Yast in "Versions" tab. After an update I'm able to operate database normally.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...