I installed julia (v1.1.1) via as stated in [platform specific instructions(https://julialang.org/downloads/platform.html) on my CentOS machine using yum and epel.
Julia works fine, but when precompiling packages (using DataFrames
for example), I get
[ Info: Precompiling GLM [38e38edf-8417-5370-95a0-9cbb8c7f171a]
ERROR: LoadError: No deps.jl file could be found. Please try running Pkg.build("Arpack").
Currently, the build command might fail when Julia has been built from source
and the recommendation is to use the official binaries from julialang.org.
For more info see https://github.com/JuliaLinearAlgebra/Arpack.jl/issues/5.
I don’t know enough about compilations, building from source, etc. to solve this. I guess it would work fine if I just download Julia from the main page and use it from within that folder. But I would prefer using it via package manager to automatically receive updates.
How do I solve this?
3
Answers
So I eventually solved this via help of the original julialang page. For some reason,
Arpack
can't be built if you install julia via# yum install julia
(with epel enabled).Pkg.build("Arpack")
fails.If you download julia from the official page and add it to path, it still throws the same error message. If you however start up julia and run
Pkg.build("Arpack")
beforehand, it works fine!Unfortunately this is expected since Arpack.jl expects OpenBLAS to be called libopenblas64_.so.0, while in Fedora/CentOS it is libopenblasp64_.so.0. You can work around the problem using
sudo ln -s /lib64/libopenblas64p_.so.0 ~/.julia/packages/Arpack/*/deps/lib/libopenblas64_.so.0
. I’ll try to find a solution with Arpack.jl developers.I confirm that @MilanBouchet-Valat solution works. Here is some details for Debian distribution.
I have installed Julia using Debian 4.19.37-5 package manager (synaptic for instance). I have
prints
Under Julia I got the “expected” error when trying to install the Arpack package:
prints
then
prints
however
prints
You can check that this is a dependance problem with:
prints
Debian distro:
prints
With root privileges (su) create a symbolic links
Now it works
then
are OK