While trying to install Makie, I noticed the following behavior:
shell$ julia -q
julia> using Makie
julia> using ProfileView
while
shell$ julia -q
julia> using ProfileView
julia> using Makie
ERROR: InitError: /tmp/.julia/packages/ImageMagick/d5KBL/deps/usr/lib/libpng16.so cannot be opened, Please re-run Pkg.build("ImageMagick"), and restart Julia.
Stacktrace:
[...]
during initialization of module ImageMagick
Below is a complete setup allowing to reproduce the isue, at least on my system (Debian stretch, in case it matters). Can anyone try and reproduce the issue? In case it is a reproducible bug, what kind of method could be used to try and determine where the error lies?
Steps to reproduce
Clean environment setup:
shell$ mkdir /tmp/.julia
shell$ JULIA_DEPOT_PATH=/tmp/.julia julia -q
(v1.1) pkg> add Makie ProfileView
julia> using Makie
julia> using ProfileView
julia> exit()
This works:
shell$ JULIA_DEPOT_PATH=/tmp/.julia julia -q
julia> using Makie
julia> using ProfileView
julia> exit()
This errors out:
shell$ JULIA_DEPOT_PATH=/tmp/.julia julia -q
julia> using ProfileView
julia> using Makie
# Error