[postgis-users] json_tokener_errors
Nathan Hemenway
nhemenway at kksbolash.com
Tue Feb 26 13:03:18 PST 2013
yes - the file exists - here is ldd out from that file:
ldd /usr/lib/postgresql/9.1/lib/postgis-2.0.so
linux-vdso.so.1 => (0x00007fffefbfd000)
libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1
(0x00002aee23949000)
libproj.so.0 => /usr/local/lib/libproj.so.0 (0x00002aee23b6b000)
libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00002aee23db9000)
libm.so.6 => /lib/libm.so.6 (0x00002aee24123000)
libc.so.6 => /lib/libc.so.6 (0x00002aee243a6000)
libgeos-3.3.7.so => /usr/local/lib/libgeos-3.3.7.so
(0x00002aee246fa000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002aee24aa1000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aee24dad000)
libdl.so.2 => /lib/libdl.so.2 (0x00002aee24fc5000)
libz.so.1 => /usr/lib/libz.so.1 (0x00002aee251c9000)
/lib64/ld-linux-x86-64.so.2 (0x00002aee23483000)
Yes - I have run - ldconfig - multiple times.
And interestingly:
nm /usr/local/lib/libjson.so | grep json_tokener_errors
and
nm /usr/local/lib/libjson.so.0 | grep json_tokener_errors
Provides nothing. Yet
nm /usr/local/lib/libjson-c.so | grep json_tokener_errors
and
nm /usr/local/lib/libjson-c.so.2 | grep json_tokener_errors
Provides:
0000000000209560 D json_tokener_errors
On 2/26/2013 12:47 PM, Stephen Woodbridge wrote:
> Does the file exits?
>
> ls /usr/lib/postgresql/9.1/lib/postgis-2.0.so
>
> Also run:
>
> sudo ldconfig
>
> to make sure cache is updated.
>
> -Steve W
>
> On 2/26/2013 3:41 PM, Nathan Hemenway wrote:
>> I am hoping someone has a solution to this issue that I have seen
>> lurking around compiling POSTGIS with JSON-C etc.
>>
>> Everything seems to compile a-okay - GEOS, PROJ, JSON-C, XMLLIB2, and
>> POSTGIS
>>
>> after the final make install of postgis when I attempt my first
>> spatialize on db:
>>
>> psql -f /usr/share/postgresql/9.1/contrib/postgis-2.0/postgis.sql -d
>> template1
>>
>> psql:/usr/share/postgresql/9.1/contrib/postgis-2.0/postgis.sql:49:
>> 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
>>
>> Here is ldd on postgis lib:
>> ldd /usr/lib/postgresql/9.1/lib/postgis-2.0.so
>> linux-vdso.so.1 => (0x00007fffefbfd000)
>> libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1
>> (0x00002aee23949000)
>> libproj.so.0 => /usr/local/lib/libproj.so.0
>> (0x00002aee23b6b000)
>> libxml2.so.2 => /usr/local/lib/libxml2.so.2
>> (0x00002aee23db9000)
>> libm.so.6 => /lib/libm.so.6 (0x00002aee24123000)
>> libc.so.6 => /lib/libc.so.6 (0x00002aee243a6000)
>> libgeos-3.3.7.so => /usr/local/lib/libgeos-3.3.7.so
>> (0x00002aee246fa000)
>> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002aee24aa1000)
>> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aee24dad000)
>> libdl.so.2 => /lib/libdl.so.2 (0x00002aee24fc5000)
>> libz.so.1 => /usr/lib/libz.so.1 (0x00002aee251c9000)
>> /lib64/ld-linux-x86-64.so.2 (0x00002aee23483000)
>>
>> Yet here is ldconfig -p | grep json:
>> ldconfig -p | grep json
>> libjson.so.0 (libc6,x86-64) => /usr/local/lib/libjson.so.0
>> libjson.so (libc6,x86-64) => /usr/local/lib/libjson.so
>> libjson-c.so.2 (libc6,x86-64) => /usr/local/lib/libjson-c.so.2
>> libjson-c.so (libc6,x86-64) => /usr/local/lib/libjson-c.so
>>
>>
>> And I can say that
>> ld.so.conf.d/ includes /usr/local/lib !
>>
>> Any ideas?
>> _______________________________________________
>> postgis-users mailing list
>> postgis-users at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list