Code Monkey home page Code Monkey logo

Comments (7)

dakcarto avatar dakcarto commented on June 7, 2024

Do you still get the error when doing?

gdalinfo --formats
# or
ogrinfo --formats

If so, try brew reinstall gdal. It looks like you have changed/updated a supporting lib of gdal, i.e. json-c. The gdal install links to specific versions of libs, instead of their base symlink, so any upgrading of the libs generally requires a rebuild of gdal.

from homebrew-osgeo4mac.

jqtrde avatar jqtrde commented on June 7, 2024

yep, issue with gdal. gdalinfo --formats is giving me

dyld: Symbol not found: _json_tokener_errors
  Referenced from: /usr/local/Cellar/gdal/1.11.0/lib/libgdal.1.dylib
  Expected in: /usr/local/lib/libjson-c.2.dylib
 in /usr/local/Cellar/gdal/1.11.0/lib/libgdal.1.dylib
[1]    10620 trace trap  gdalinfo --formats

Running homebrew's default gdal, will try again with your build later today.

As always @dakcarto, thanks for the help!

from homebrew-osgeo4mac.

esetnik avatar esetnik commented on June 7, 2024

I'm having the same issue with the latest homebrew version.

$ gdalinfo --formats
dyld: Symbol not found: _json_tokener_errors
  Referenced from: /usr/local/opt/liblwgeom/lib/liblwgeom-2.1.1.dylib
  Expected in: /usr/local/lib/libjson-c.2.dylib
 in /usr/local/opt/liblwgeom/lib/liblwgeom-2.1.1.dylib
Trace/BPT trap: 5

from homebrew-osgeo4mac.

dakcarto avatar dakcarto commented on June 7, 2024

Looks like an issue with json-c version, which has now been downgraded: Homebrew/legacy-homebrew#29430.

Recommend trying brew reinstall json-c.

Any further issues with gdal or its supporting libs should be reported to main Homebrew issue tracker.

from homebrew-osgeo4mac.

rkrug avatar rkrug commented on June 7, 2024

brew reinstall json-c alone did not work, I had to remove it (brew remove json-c and then install it again brew install json-c)
Thanks

from homebrew-osgeo4mac.

dakcarto avatar dakcarto commented on June 7, 2024

@rkrug Thanks for the tip. Odd, though, since that is what reinstall basically does. In this case, since there was a higher version number, and the new install was reverting to a lower number, it make sense. brew remove json-c removes the now-orphaned 0.12 directory, allowing a clean install of 0.11.

Anything that uses json-c would then need rebuilt: brew reinstall $(brew uses json-c --installed)

from homebrew-osgeo4mac.

rkrug avatar rkrug commented on June 7, 2024

It is even stranger: I had 0.11 installed and the reinstall did nothing. But the removal and subsequent install worked and gdal as well.

Envoyé de mon iPhone

Le 6 juin 2014 à 19:01, Larry Shaffer [email protected] a écrit :

@rkrug Thanks for the tip. Odd, though, since that is what reinstall basically does. In this case, since there was a higher version number, and the new install was reverting to a lower number, it make sense. brew remove json-c removes the now-orphaned 0.12 directory, allowing a clean install of 0.11.

Anything that uses json-c would then need rebuilt: brew reinstall $(brew uses json-c --installed)


Reply to this email directly or view it on GitHub.

from homebrew-osgeo4mac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.