Open StephenVavasis opened 6 years ago
On a fresh Ubuntu 18.04 install,
$ locate libz.so | grep -v home
/lib/x86_64-linux-gnu/libz.so.1
/lib/x86_64-linux-gnu/libz.so.1.2.11
and consequently
julia> using Libdl
julia> dlopen("libz.so")
ERROR: could not load library "libz.so"
libz.so: cannot open shared object file: No such file or directory
Stacktrace:
[1] dlopen(::String, ::UInt32) at /usr/local/julia/julia-1.0/usr/share/julia/stdlib/v1.0/Libdl/src/Libdl.jl:97 (repeats 2 times)
[2] top-level scope at none:0
julia> dlopen("libz.so.1")
Ptr{Nothing} @0x000055bccaaccec0
Interestingly, none of the libs in /lib/x86_64-linux-gnu
have unversioned .so
links. On a separate 18.04 system (one that was upgraded from earlier Ubuntu releases and also has many more packages installed), I also have /usr/lib/x86_64-linux-gnu/libz*
and that does have the unversioned symlink. According to dpkg
, the owner of that is zlib1g-dev
, and doing
sudo apt install zlib1g-dev
indeed fixed this problem for me.
@timholy Thanks for investigating that, @StephenVavasis I would encourage you both to use CodecZLib instead of this package, if it is possible, as it is more up to date and IIRC, uses BinaryBuilder and BinaryProvider to fulfill it's dependencies. Libz.jl is currently maintained as people still depend on it in older packages, but I would recommend CodecZlib.jl over this package.
I keep getting the following error on Gitlab CI. I presume it's related to this issue.
ERROR: LoadError: LoadError: error compiling version: could not load library "libz"
libz.so: cannot open shared object file: No such file or directory
Stacktrace:
[1] top-level scope at none:0
[2] include at ./boot.jl:326 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1038
[4] include at ./sysimg.jl:29 [inlined]
[5] include(::String) at /root/.julia/packages/Libz/zMAun/src/Libz.jl:3
[6] top-level scope at none:0
[7] include at ./boot.jl:326 [inlined]
[8] include_relative(::Module, ::String) at ./loading.jl:1038
[9] include(::Module, ::String) at ./sysimg.jl:29
[10] top-level scope at none:2
[11] eval at ./boot.jl:328 [inlined]
[12] eval(::Expr) at ./client.jl:404
[13] top-level scope at ./none:3
in expression starting at /root/.julia/packages/Libz/zMAun/src/lowlevel.jl:110
in expression starting at /root/.julia/packages/Libz/zMAun/src/Libz.jl:11
I had the same issue, I installed Libz has a dependency of MAT, but I couldn't make it work I solved following @timholy's advice
sudo apt install zlib1g-dev
@DarioSarra Thanks! I put that in in the .gitlab-ci.yml
and it works.
But it seems that Libz.jl
should take care of this automatically.
I fixed this issue on a fresh install of Centos 7 by making a link between .so.1 to .so:
sudo ln -sf /usr/lib64/libz.so.1 /usr/lib64/libz.so
Libz is not installing in the latest nightly of 0.7-DEV. The error message is below. This is for Ubuntu 17.10. I am trying to install JLD2, which depends on libz.