Won't compile on fresh Julia install, complains about dependencies #2895
Replies: 3 comments 2 replies
-
Is this on a cluster? I've seen this before but no idea where it comes from. I've also gotten mysterious and similar errors regarding One thing you might try is to add |
Beta Was this translation helpful? Give feedback.
-
I wonder if this is related to JuliaLang/julia#42873 |
Beta Was this translation helpful? Give feedback.
-
Hm.. I changed my setup a bit to avoid it (this was on Windows Subsystem for Linux, I'm just using it on Windows now). Luckily it works fine on the cluster I'm using later. If it occurs again I'll try adding the offender to the global environment but for now I'm okay. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I just installed Oceananigans, it gives this error when precompiling:
(@v1.8) pkg> precompile
Precompiling project...
✗ Oceananigans
0 dependencies successfully precompiled in 4 seconds. 146 already precompiled.
ERROR: The following 1 direct dependency failed to precompile:
Oceananigans [9e8cae18-63c1-5223-a75c-80ca9d6e9a09]
Failed to precompile Oceananigans [9e8cae18-63c1-5223-a75c-80ca9d6e9a09] to /home/yolk/.julia/compiled/v1.8/Oceananigans/jl_lpMZRF.
ERROR: LoadError: ArgumentError: Package Oceananigans does not have StaticArrays in its dependencies:
Pkg.instantiate()
to ensure all packages in the environment are installed.
added StaticArrays as a dependency but haven't updated your primary
environment's manifest file, try
Pkg.resolve()
.Stacktrace:
[1] macro expansion
@ ./loading.jl:1167 [inlined]
[2] macro expansion
@ ./lock.jl:223 [inlined]
[3] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1144
[4] include
@ ./Base.jl:419 [inlined]
[5] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
@ Base ./loading.jl:1554
[6] top-level scope
@ stdin:1
in expression starting at /home/yolk/.julia/packages/Oceananigans/KClIg/src/Oceananigans.jl:1
in expression starting at stdin:1
Tried
instantiate
andresolve
. Here is the version info.Julia Version 1.8.5
Commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 6 × AMD Ryzen 5 4500U with Radeon Graphics
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, znver2)
Threads: 1 on 6 virtual cores
Beta Was this translation helpful? Give feedback.
All reactions