Re: [postgis-users] error: undefined symbol: json_tokener_errors in POSTGIS2.0

420 views
Skip to first unread message

P Mohan

unread,
Jan 18, 2012, 10:18:49 PM1/18/12
to jso...@googlegroups.com
I am cross posting this json-c related message to this mailing list.
Have any body faced this issue before ?


---------- Forwarded message ----------
From: P Mohan <pmo...@neozon.net>
Date: Wed, Jan 18, 2012 at 10:09 PM
Subject: Re: [postgis-users] error: undefined symbol: json_tokener_errors in POSTGIS2.0
To: PostGIS Users Discussion <postgi...@postgis.refractions.net>


Thanks for the response. after you email i checked that angle.

Ubuntu Oneiric has /usr/local/lib included in the path you mentioned.
is there anything else that i am missing? gimme some leads that i can pursue. 



On Wed, Jan 18, 2012 at 7:40 PM, Paul Ramsey <pra...@cleverelephant.ca> wrote:
Often times Linux distros will ship without /usr/local/lib in the ld
path, so running ldconfig won't actually pick up libraries there. Edit
/etc/ld.so.conf and add a line for /usr/local/lib then run ldconfig
again.

P.

On Tue, Jan 17, 2012 at 6:59 AM, P Mohan <pmo...@neozon.net> wrote:
> hi Strk,
>
> i ran the ldconfig (load dynamic configuration) in the same directory as
> json-c make.
> then tried again, still getting the same error.
>
> is there any thing else that i should check?
>
> thanks
> pmohan
>
>
> On Tue, Jan 17, 2012 at 4:15 AM, Sandro Santilli <st...@keybit.net> wrote:
>>
>> On Tue, Jan 17, 2012 at 01:40:51AM -0500, P Mohan wrote:
>>
>> > /usr/lib/postgresql/9.1/lib/postgis-2.0.so: undefined symbol:
>> > json_tokener_errors
>> ...
>> >     installed json-c from source from github
>>
>> As root, run:
>>   # ldconfig
>>
>> --strk;
>>
>>  ()   Free GIS & Flash consultant/developer
>>  /\   http://strk.keybit.net/services.html
>> _______________________________________________
>> postgis-users mailing list
>> postgi...@postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
>
> _______________________________________________
> postgis-users mailing list
> postgi...@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
_______________________________________________
postgis-users mailing list
postgi...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users



Eric Haszlakiewicz

unread,
Jan 19, 2012, 11:02:39 PM1/19/12
to jso...@googlegroups.com

On Jan 18, 2012 9:19 PM, "P Mohan" <pmo...@neozon.net> wrote:
>>
>> I am cross posting this json-c related message to this mailing list.
>> Have any body faced this issue before ?
>>
>>

>>> >> On Tue, Jan 17, 2012 at 01:40:51AM -0500, P Mohan wrote:
>>> >>
>>> >> > /usr/lib/postgresql/9.1/lib/postgis-2.0.so: undefined symbol:
>>> >> > json_tokener_errors
>>> >> ...
>>> >> >     installed json-c from source from github
>>> >>

You might want to check if there is a libjson.so present (maybe in /usr/lib) from a different json library.  Unfortunately more than one project used the same library name so sometimes they can conflict.

Eric

Stuart Watson

unread,
Jan 26, 2012, 11:51:20 AM1/26/12
to jso...@googlegroups.com
Do you have a fix for this yet?  I've also been having this issue and am unable to find a solution.

Thanks

Prabhuram Mohan

unread,
Jan 26, 2012, 12:09:00 PM1/26/12
to jso...@googlegroups.com

Still having the issue. Since I was using ec2 .. I even tried installing from scratch several times ... doesn't make sense at all to me.. some think small is causing this  issue not go away.

I am running my server without geojson Support which depends on json-c

Is there else we can try..

Lemme know how it goes for u...

Eric Haszlakiewicz

unread,
Jan 26, 2012, 1:58:11 PM1/26/12
to jso...@googlegroups.com

Installing from scratch won't help you at all if you have a conflictling library installed.  You need to either *un*install the other library, or adjust how you link your program to pick things up in a different order.  (i.e. pass -Wl,-R when linking and/or set LD_LIBRARY_PATH)

Eric

Mario Torres

unread,
Dec 19, 2012, 3:28:02 PM12/19/12
to jso...@googlegroups.com, pmo...@neozon.net
Greetings, I resolved this error installing json-c-devel, then ldconfig.
Hope this help you.

Good day.

Mario T.
Reply all
Reply to author
Forward
0 new messages