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

2012-01-19 Thread Sandro Santilli
On Wed, Jan 18, 2012 at 10:09:24PM -0500, P Mohan wrote:
> 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.

Clean up your system to drop the custom installed json-c lib ?
"make uninstall" under the build tree hopefully does it.

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2012-01-18 Thread P Mohan
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 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  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 
> 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
> >> postgis-users@postgis.refractions.net
> >> http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> >
> >
> > ___
> > postgis-users mailing list
> > postgis-users@postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> ___
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2012-01-18 Thread Paul Ramsey
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  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  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
>> postgis-users@postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
>
> ___
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2012-01-18 Thread P Mohan
Hi Sandro,

It was someone else who got it fixed. I am still struggling with the
problem.

i tried a few things still running into the same issue

1) reinstalled Ubuntu Oneiric and tried Postgis 2.0 with out json-c - Works
fine
2) recompiled json-c , ran ldconfig as root and tried postgis 2.0 - got
into undefined symbol: json_tokener_errors
3) installed json-c from Ubuntu repository - got into undefined symbol:
json_tokener_errors

what else can i try ..

I am trying to install CartoDB/postgis2.0 which depends on json-c to work
with geojson.

thanks


please advice ..





On Tue, Jan 17, 2012 at 3:43 PM, Sandro Santilli  wrote:

> On Tue, Jan 17, 2012 at 09:59:45AM -0500, P Mohan wrote:
> >
> > On Tue, Jan 17, 2012 at 4:15 AM, Sandro Santilli 
> 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
> >
> > 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?
>
> Did we solve this on IRC already ?
> If not you somebody else had the same problem and solved by
> recompiling libjson-c
>
> --strk;
>
>  ()   Free GIS & Flash consultant/developer
>  /\   http://strk.keybit.net/services.html
>
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2012-01-17 Thread Sandro Santilli
On Tue, Jan 17, 2012 at 09:59:45AM -0500, P Mohan wrote:
>
> On Tue, Jan 17, 2012 at 4:15 AM, Sandro Santilli  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
>
> 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?

Did we solve this on IRC already ?
If not you somebody else had the same problem and solved by 
recompiling libjson-c

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2012-01-17 Thread P Mohan
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  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
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2012-01-17 Thread Sandro Santilli
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
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2012-01-16 Thread P Mohan
Hello,

 i am getting json_tokener_errors when trying to run postgis.sql.

DETAIL:  Creating a shell type definition. psql:a.sql:4: ERROR:  could not
load library "/usr/lib/postgresql/9.1/lib/postgis-2.0.so":
/usr/lib/postgresql/9.1/lib/postgis-2.0.so: undefined symbol:
json_tokener_errors

is it a known issue? is there a way to fix this.

*System Info :*
OS Ubuntu Oneiric 32 bit, postgres 9.1
latest tar ball of POSTGIS2.0
installed json-c from source from github


Thanks
Pmohan
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users