Git Product home page Git Product logo

Comments (4)

eval-apply avatar eval-apply commented on September 24, 2024

godal makes use of pkg-config to pass ldflags to cgo, so you will need to let it know where the GDAL pkg-config path is. I don't know the specific install location when using miniconda, but once you know the path something like this would work:

PKG_CONFIG_PATH=//Users/ash/miniconda3/lib/gdal/pkgconfig go run main.go

from godal.

ashnair1 avatar ashnair1 commented on September 24, 2024

I had already set PKG_CONFIG_PATH prior to running the command. The error still occurs.

$ echo $PKG_CONFIG_PATH
/Users/ash/miniconda3/lib/pkgconfig

$ ls $PKG_CONFIG_PATH | grep gdal.pc
gdal.pc

$ go run main.go
dyld[28793]: Library not loaded: @rpath/libgdal.30.dylib
  Referenced from: /private/var/folders/y5/yh59dj093xn_dz8lm0mhv6lh0000gp/T/go-build3191999631/b001/exe/test
  Reason: tried: '/usr/local/lib/libgdal.30.dylib' (no such file), '/usr/lib/libgdal.30.dylib' (no such file)
signal: abort trap

from godal.

eval-apply avatar eval-apply commented on September 24, 2024

ok then you'd need to tell it where to find the dynamic library at runtime, something like LD_LIBRARY_PATH=/Users/ash/miniconda3/lib go run main.go perhaps? I'm just guessing that's where miniconda libs live.

from godal.

ashnair1 avatar ashnair1 commented on September 24, 2024

You mean DYLD_LIBRARY_PATH? This is for MacOS. I tried setting those and the problem persists.

Btw, that is indeed where miniconda libs live

from godal.

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.