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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/":
 /usr/lib/postgresql91/lib64/ 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 (or ldconfig command). But I can't figure out what I have to do in my case.

share|improve this question
a recent version of proj (>= 4.8) is needed. What does proj --version and/or ldd `which proj` show? – Mike T 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 '13 at 15:53
up vote 6 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

mmrs151. To upgrade from proj version 4.7 to proj 4.8 on Ubuntu 13.04. At least it helped me solve the same problem.

$ sudo apt-get upgrade libproj-dev

share|improve this answer
Could you elaborate a bit on your answer? How does it solve the OP's problem? – Martin Mar 20 '14 at 11:24
This answer is useless - openSUSE doesn't use apt. – SS_Rebelious Mar 20 '14 at 11:26
The answer was meant for mmrs151. – Amimo Benja Mar 20 '14 at 13:31

Your Answer


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.