Skip to content
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

Binarybuild installation fails on macOS #51

Closed
evetion opened this issue Jul 6, 2018 · 2 comments
Closed

Binarybuild installation fails on macOS #51

evetion opened this issue Jul 6, 2018 · 2 comments

Comments

@evetion
Copy link
Member

evetion commented Jul 6, 2018

GDAL doesn't install on macOS, failing on the building part.

julia> Pkg.build("GDAL")
INFO: Building CodecZlib
INFO: Building Proj4
INFO: Building LibGEOS
INFO: Building GDAL
==================================================================================================[ ERROR: GDAL ]===================================================================================================

LoadError: BinaryProvider.LibraryProduct(nothing, String["libgdal"], :libgdal, "Prefix(/Users/epta/.julia/v0.6/GDAL/deps/usr)") is not satisfied, cannot generate deps.jl!
while loading /Users/epta/.julia/v0.6/GDAL/deps/build.jl, in expression starting on line 56

====================================================================================================================================================================================================================

The problem lies in the binary build, the libgdal.dylib cannot be loaded because its depencies cannot be found. The following lines prevent it for Linux, but not for macOS: https://github.com/JuliaGeo/GDAL.jl/blob/master/deps/build.jl#L46

julia> Libdl.dlopen("libgdal")
ERROR: could not load library "libgdal"
dlopen(libgdal.dylib, 1): Library not loaded: @rpath/libproj.12.dylib
  Referenced from: /Users/epta/.julia/v0.6/GDAL/deps/usr/lib/libgdal.20.dylib
  Reason: image not found
Stacktrace:
 [1] dlopen(::String, ::UInt32) at ./libdl.jl:97 (repeats 2 times)
@visr
Copy link
Member

visr commented Jul 6, 2018

Hmm I wonder why it's working on OSX Travis but not for you locally. In any case I'm updating the builders to run with the latest BinaryBuilder which might bring along some rpath related fixes. Hope that will help here.

@evetion
Copy link
Member Author

evetion commented Jul 7, 2018

This is fixed for me by #52

@visr visr closed this as completed Jul 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants