8000 Error locating libgdal.dylib in macos · Issue #98 · airbusgeo/godal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error locating libgdal.dylib in macos #98
Open
@ashnair1

Description

@ashnair1

I was trying out the godal library (on my M1 Mac) and wrote a simple script as follows:

package main

import (
	"github.com/airbusgeo/godal"
)

func main() {
	godal.RegisterAll()
}

Running go run main.go throws the following error

dyld[19569]: Library not loaded: @rpath/libgdal.30.dylib
  Referenced from: /private/var/folders/y5/yh59dj093xn_dz8lm0mhv6lh0000gp/T/go-build1573968352/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

godal has a dependency on gdal and I had installed it via conda. Due to this, the dylib is located under my conda folder - /Users/ash/miniconda3/lib not /usr/local/lib.

How can I have the program search for libgdal.dylib in /Users/ash/miniconda3/lib instead of /usr/local/lib ?

Had raised this question in StackOverflow previously but didn't get any solutions to this issue. Link - here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0