My friend has a new toy, Mac M1, and wants to run one of the codes that I wrote for him.
Arpack is needed for eigs
, but the machine chokes on it: missing libarpack.
Julia 1.8…
Is there a trick, or are we out of luck?
My friend has a new toy, Mac M1, and wants to run one of the codes that I wrote for him.
Arpack is needed for eigs
, but the machine chokes on it: missing libarpack.
Julia 1.8…
Is there a trick, or are we out of luck?
Works for me:
(@v1.8) pkg> activate --temp
Activating new project at `/var/folders/tz/_3rffzvd1hs3rrxssmntjnpw0000gn/T/jl_LzWuNi`
(jl_LzWuNi) pkg> add Arpack
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General`
Resolving package versions...
Installed Arpack_jll ─ v3.5.1+1
Installed Arpack ───── v0.5.3
Downloaded artifact: Arpack
Updating `/private/var/folders/tz/_3rffzvd1hs3rrxssmntjnpw0000gn/T/jl_LzWuNi/Project.toml`
[7d9fca2a] + Arpack v0.5.3
Updating `/private/var/folders/tz/_3rffzvd1hs3rrxssmntjnpw0000gn/T/jl_LzWuNi/Manifest.toml`
[7d9fca2a] + Arpack v0.5.3
[692b3bcd] + JLLWrappers v1.4.1
[21216c6a] + Preferences v1.3.0
[68821587] + Arpack_jll v3.5.1+1
[0dad84c5] + ArgTools v1.1.1
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[f43a241f] + Downloads v1.6.0
[7b1f6079] + FileWatching
[b77e0a4c] + InteractiveUtils
[b27032c2] + LibCURL v0.6.3
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[ca575930] + NetworkOptions v1.2.0
[44cfe95a] + Pkg v1.8.0
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA v0.7.0
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[fa267f1f] + TOML v1.0.0
[a4e569a6] + Tar v1.10.0
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
[e66e0078] + CompilerSupportLibraries_jll v0.5.2+0
[deac9b47] + LibCURL_jll v7.84.0+0
[29816b5a] + LibSSH2_jll v1.10.2+0
[c8ffd9c3] + MbedTLS_jll v2.28.0+0
[14a3606d] + MozillaCACerts_jll v2022.2.1
[4536629a] + OpenBLAS_jll v0.3.20+0
[83775a58] + Zlib_jll v1.2.12+3
[8e850b90] + libblastrampoline_jll v5.1.1+0
[8e850ede] + nghttp2_jll v1.48.0+0
[3f19e933] + p7zip_jll v17.4.0+0
Precompiling project...
2 dependencies successfully precompiled in 1 seconds. 8 already precompiled.
julia> using Arpack
julia> A
3×3 Matrix{Float64}:
0.257184 1.55349 0.204182
1.55349 1.97561 1.01386
0.204182 1.01386 1.74617
julia> eigs(A)
┌ Warning: Adjusting nev from 6 to 2
└ @ Arpack ~/.julia/packages/Arpack/pLziT/src/Arpack.jl:92
([3.4584304883312194, 1.2318554667344084], [0.40342795550273014 -0.38622194952000827; 0.7654425548477087 -0.35425650520373275; 0.5013417795746727 0.8516659757380245], 2, 1, 3, [0.0, 0.0, 0.0])
julia> versioninfo()
Julia Version 1.8.0-rc4
Commit 7853436ccd7 (2022-08-08 07:55 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.5.0)
CPU: 8 × Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
Threads: 1 on 4 virtual cores
Do you have a reproducible example?
It turned out to be a package which held back Arpack. Thanks for checking.