Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Handle package binary dependencies #61

Open
grero opened this issue Feb 13, 2018 · 0 comments
Open

Handle package binary dependencies #61

grero opened this issue Feb 13, 2018 · 0 comments

Comments

@grero
Copy link

grero commented Feb 13, 2018

Is there currently a way to deal with shared libraries referenced by other packages used in compiled code? I'm trying to create a standalone binary for a tool that should run on our HPC. The code I'm trying to compile relies on the HDF5 package, which uses the Blosc package, which relies on the libblosc.dylib located under the deps folder of that package. Now, when I run my binary on a system that does not have the same julia package tree as on the compile machine, it returns an error saying it is unable to find the library.

fatal: error thrown and no exception handler available.
Base.InitError(mod=:Blosc, error=ErrorException("could not load library "/Volumes/DataX/Users/grogee/.julia/v0.6/Blosc/src/../deps/libblosc"
dlopen(/Volumes/DataX/Users/grogee/.julia/v0.6/Blosc/src/../deps/libblosc.dylib, 1): image not found"))
rec_backtrace at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_throw at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_errorf at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_dlerror at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_load_dynamic_library_ at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_get_library at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_load_and_lookup at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jlplt_blosc_init_25622 at /opt/data2/Software/HMMSpikeSorting/hmm_decode_julia/libhmmsort.dylib (unknown line)
__init__ at /opt/data2/Software/HMMSpikeSorting/hmm_decode_julia/libhmmsort.dylib (unknown line)
jlcall___init___25620 at /opt/data2/Software/HMMSpikeSorting/hmm_decode_julia/libhmmsort.dylib (unknown line)
jl_module_run_initializer at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
_julia_init at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
julia_init at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
main at /opt/data2/Software/HMMSpikeSorting/hmm_decode_julia/hmmsort (unknown line)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant