arpack安装错误

Building Arpack ──────────→ ~/.julia/packages/Arpack/UiiMc/deps/build.log
┌ Error: Error building Arpack:
│ ERROR: LoadError: LibraryProduct(nothing, [“libarpack”], :libarpack, “Prefix(/home/fares/.julia/packages/Arpack/UiiMc/deps/usr)”) is not satisfied, cannot generate deps.jl!
│ Stacktrace:
│ [1] #write_deps_file#152(::Bool, ::Function, ::String, ::Array{LibraryProduct,1}) at /home/fares/.julia/packages/BinaryProvider/4F5Hq/src/Products.jl:414
│ [2] (::getfield(BinaryProvider, Symbol("#kw##write_deps_file")))(::NamedTuple{(:verbose,),Tuple{Bool}}, ::typeof(write_deps_file), ::String, ::Array{LibraryProduct,1}) at ./none:0
│ [3] top-level scope at none:0
│ [4] include(::String) at ./client.jl:403
│ [5] top-level scope at none:0
│ in expression starting at /home/fares/.julia/packages/Arpack/UiiMc/deps/build.jl:74
└ @ Pkg.Operations /build/julia/src/julia-1.1.0/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel® Celeron® CPU N3150 @ 1.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, silvermont)

(v1.1) pkg> status
Status ~/.julia/environments/v1.1/Project.toml
[c52e3926] Atom v0.7.14
[a93c6f00] DataFrames v0.17.1
[7073ff75] IJulia v1.17.0
[1d978283] TensorFlow v0.11.0

可以看看这个 issue,虽然看上去你并不是自己从源码编译的。

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.

用官方的二进制试过了,build的时候下载的依赖和之前的不一样,但是build成功了

ldd 下 Arpack 的 lib 下的 .so 是不是缺库,一般是库的名字和系统的对不上。
缺什么库,直接 ln -s 到 lib 文件夹,补充上缺的那个库就好了。

for arch:

# cd ~/.julia/packages/Arpack/UiiMc/deps/usr/lib #previous version
cd ~/.julia/packages/Arpack/cu5By/deps/usr/lib
ln -s /usr/lib/libopenblas.so libopenblas64_.so.0

没有 link 之前的 ldd libarpack.so.2.0.0

	linux-vdso.so.1 (0x00007ffd073e5000)
	libopenblas64_.so.0 => not found
	libgfortran.so.5 => /usr/lib/libgfortran.so.5 (0x00007f179ff9e000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007f179fe58000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f179fe3e000)
	libquadmath.so.0 => /usr/lib/libquadmath.so.0 (0x00007f179fdfb000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007f179fc36000)
	libz.so.1 => /usr/lib/../lib/libz.so.1 (0x00007f179fa1d000)
	/usr/lib64/ld-linux-x86-64.so.2 (0x00007f17a04ca000)`