[postgis-users] json_tokener_errors

Nathan Hemenway nhemenway at kksbolash.com
Tue Feb 26 12:41:13 PST 2013


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?


More information about the postgis-users mailing list