Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question
2  
a recent version of proj (>= 4.8) is needed. What does proj --version and/or ldd `which proj` show? – Mike Toews Dec 13 '12 at 1:43
@MikeToews, my proj version is 4.7.1. Looks like I need to update it. – SS_Rebelious Dec 17 '12 at 16:19
I have installed proj 4.8 from their official site. But still when I do proj --verion it shows me > Rel. 4.7.1, 23 September 2009 How can I upgrade it to 4.8. I am out of any ideas :( I am using Ubuntu 12.4 Thanks Mo. – mmrs151 May 17 at 15:53

1 Answer

up vote 3 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.