macoshomebrewgdaldyld

gdal dyld: Library not loaded Reason: image not found


➜  ishan git:(master) ✗ ogr2ogr -f GPKG ./testgpkg.gpkg combining_elevation_coastline_data.csv -oo X_POSSIBLE_NAMES=x -oo Y_POSSIBLE_NAMES=y -a_srs 'EPSG:4326'
dyld: Library not loaded: @rpath/libpoppler.91.dylib
  Referenced from: /Users/ishansrivastava/miniconda/lib/libgdal.26.dylib
  Reason: image not found
[1]    94711 abort      ogr2ogr -f GPKG ./testgpkg.gpkg combining_elevation_coastline_data.csv -oo   

I am trying to convert a csv file into a geopackage file

things i tried:

1.

brew update
brew upgrade
brew cleanup

reinstalled xcode command line tools

3. https://stackoverflow.com/a/50261326/7806805

4. https://stackoverflow.com/a/17704255/7806805

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool-classic: can't open file: exefile (No such file or directory)

https://stackoverflow.com/a/62011143/7806805


Solution

  • what finally worked:

    conda update -c rdonnellyr -c main --all