From this issue:
https://github.com/kmsquire/GZip.jl/issues/10#issuecomment-29527536
A user on v0.3.0-prerelease was attempting to use GZip.jl (through Gadfly.jl), and was getting an error trying to load the library:
julia> dlopen("libz")
ERROR: could not load module libz: dlopen(libz.dylib, 1): image not found
in dlopen at c.jl:19
julia> _zlib=dlopen("libz.1.dylib")
ERROR: could not load module libz.1.dylib: dlopen(libz.1.dylib.dylib, 1): image not found
in dlopen at c.jl:19
julia> _zlib=dlopen("libz.1")
ERROR: could not load module libz.1: dlopen(libz.1.dylib, 1): image not found
in dlopen at c.jl:19
julia> shlib_list() |> x->filter(y->contains(y,"libz"), x)
1-element Array{String,1}:
"/usr/lib/libz.1.dylib"
It works if he includes the full path:
julia> _zlib=dlopen("/usr/lib/libz.1.dylib")
Ptr{Void} @0x00007fc445730060
Some questions/requests:
1) Is this specific to Tobias' system, or is does it happen on other Mavericks systems? I had no problems on Snow Leopard (10.7).
2) Could llvm or some other component be pulling in a version of zlib that is masking the system version?
Any thoughts or suggestions appreciated--thanks!
Kevin