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
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
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...
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