-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error locating libgdal.dylib in macos #98
Comments
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:
|
I had already set
|
ok then you'd need to tell it where to find the dynamic library at runtime, something like |
You mean Btw, that is indeed where miniconda libs live |
I was trying out the godal library (on my M1 Mac) and wrote a simple script as follows:
Running
go run main.go
throws the following errorgodal 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
The text was updated successfully, but these errors were encountered: