[postgis-users] 2.1.0beta3dev upgrade error

Bborie Park dustymugs at gmail.com
Thu May 23 08:19:55 PDT 2013


I'd suggest using json 0.9 as that's what I'm running.

-bborie

On Thu, May 23, 2013 at 8:10 AM, Stephen Woodbridge
<woodbri at swoodbridge.com> wrote:
> Bborie,
>
> I downloaded: json-c-0.11-nodoc.tar.gz
> there was also v 0.10 available.
>
> I will also note that json-c does not appear to be available in the Debian
> Squeeze repository.
>
> Also, I just noticed the note that I need GEOS 3.4 for the Delauney
> triangles, so I'm rebuilding the latest GEOS nightly snapshot and will
> install that.
>
> Thanks,
>   -Steve
>
>
> On 5/23/2013 10:00 AM, Bborie Park wrote:
>>
>> Steve,
>>
>> Which version of the json library are you using?
>>
>> http://trac.osgeo.org/postgis/ticket/2213
>>
>> -bborie
>>
>> On Wed, May 22, 2013 at 10:22 PM, Stephen Woodbridge
>> <woodbri at swoodbridge.com> wrote:
>>>
>>> Some more data points. I also created a new database and tried:
>>>
>>> pgis21=# create extension postgis;
>>>
>>> ERROR:  could not load library
>>> "/usr/lib/postgresql/9.2/lib/postgis-2.1.so":
>>> /usr/lib/postgresql/9.2/lib/postgis-2.1.so: undefined symbol:
>>> json_tokener_errors
>>> pgis21=# create extension postgis version '2.0.3';
>>> ERROR:  could not load library
>>> "/usr/lib/postgresql/9.2/lib/rtpostgis-2.0.so": libgdal1.6.0.so.1: cannot
>>> open shared object file: No such file or directory
>>>
>>> So I rebuilt postgis 2.0.3 to use the new gdal that I installed for 2.1
>>> and
>>> tried "create extension postgis;" and this installed 2.0.3 by default.
>>>
>>> pgis21=# drop extension postgis ;
>>> DROP EXTENSION
>>>
>>> pgis21=# create extension postgis version '2.1.0beta3dev';
>>> CREATE EXTENSION
>>>
>>> and now it loaded 2.1 ok.
>>>
>>> Not sure what caused the strangeness, but it seems to be working there,
>>> but
>>> when I run my pgrouting test script:
>>>
>>> woodbri at maps:~/work/pgrouting$ tools/test-runner.pl
>>> RUNNING: test-runner.pl
>>> ERROR:  could not load library
>>> "/usr/lib/postgresql/9.2/lib/postgis-2.0.so":
>>> /usr/lib/postgresql/9.2/lib/postgis-2.0.so: undefined symbol:
>>> json_tokener_errors
>>> ERROR:  required extension "postgis" is not installed
>>>
>>> This creates a new database, adds postgis and pgrouting and then runs
>>> tests
>>> in that database.
>>>
>>> -Steve
>>>
>>>
>>> On 5/23/2013 1:01 AM, Stephen Woodbridge wrote:
>>>>
>>>>
>>>> Hi all,
>>>>
>>>> I just tried to upgrade postgis from 2.0.3 -> 2.1.0beta3dev and got the
>>>> following error:
>>>>
>>>> pgr_test=# alter extension postgis update to '2.1.0beta3dev';
>>>> ERROR:  could not load library
>>>> "/usr/lib/postgresql/9.2/lib/postgis-2.1.so":
>>>> /usr/lib/postgresql/9.2/lib/postgis-2.1.so: undefined symbol:
>>>> json_tokener_errors
>>>>
>>>> Did I forget a step or do something wrong?
>>>>
>>>> -Steve
>>>>
>>>> I have json-c-0.11 built and installed. In fact is is the ./configure
>>>> report:
>>>>
>>>>     PostGIS is now configured for i686-pc-linux-gnu
>>>>
>>>>    -------------- Compiler Info -------------
>>>>     C compiler:           gcc -g -O2
>>>>     C++ compiler:         g++ -g -O2
>>>>     SQL preprocessor:     /usr/bin/cpp -traditional-cpp -P
>>>>
>>>>    -------------- Dependencies --------------
>>>>     GEOS config:          /usr/local/bin/geos-config
>>>>     GEOS version:         3.3.8
>>>>     GDAL config:          /usr/local/bin/gdal-config
>>>>     GDAL version:         1.9.2
>>>>     PostgreSQL config:    /usr/lib/postgresql/9.2/bin/pg_config
>>>>     PostgreSQL version:   PostgreSQL 9.2.4
>>>>     PROJ4 version:        47
>>>>     Libxml2 config:       /usr/bin/xml2-config
>>>>     Libxml2 version:      2.7.8
>>>>     JSON-C support:       yes
>>>>     PostGIS debug level:  0
>>>>     Perl:                 /usr/bin/perl
>>>>
>>>>    --------------- Extensions ---------------
>>>>     PostGIS Raster:       enabled
>>>>     PostGIS Topology:     enabled
>>>>     SFCGAL support:       disabled
>>>>
>>>>    -------- Documentation Generation --------
>>>>     xsltproc:             /usr/bin/xsltproc
>>>>     xsl style sheets:
>>>>     dblatex:
>>>>     convert:
>>>>     mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>
>> _______________________________________________
>> 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