Molly库的github地址
具体情况如下
输入语句
]using Molly
输出中提示预编译错误
[ Info: Precompiling Molly [aa0f7f06-fcc0-5ec4-a7f3-a573f33f9c4c]
ERROR: LoadError: type Nothing has no field captures
Stacktrace:
[1] top-level scope
@ C:\Users\ASUS\.julia\packages\LLVM\tVv0H\src\LLVM.jl:14
[2] top-level scope (repeats 2 times)
@ none:1
in expression starting at C:\Users\ASUS\.julia\packages\LLVM\tVv0H\src\LLVM.jl:1
ERROR: LoadError: Failed to precompile LLVM [929cbde3-209d-540e-8aea-75f648917ca0] to C:\Users\ASUS\.julia\compiled\v1.7\LLVM\jl_9549.tmp.
Stacktrace:
[1] top-level scope (repeats 2 times)
@ none:1
in expression starting at C:\Users\ASUS\.julia\packages\GPUCompiler\I9fZc\src\GPUCompiler.jl:1
ERROR: LoadError: Failed to precompile GPUCompiler [61eb1bfa-7361-4325-ad38-22787b887f55] to C:\Users\ASUS\.julia\compiled\v1.7\GPUCompiler\jl_928A.tmp.
Stacktrace:
[1] top-level scope (repeats 2 times)
@ none:1
in expression starting at C:\Users\ASUS\.julia\packages\CUDA\5jdFl\src\CUDA.jl:1
ERROR: LoadError: Failed to precompile CUDA [052768ef-5323-5732-b1bb-66c8b64840ba] to C:\Users\ASUS\.julia\compiled\v1.7\CUDA\jl_9151.tmp.
Stacktrace:
[1] top-level scope (repeats 2 times)
@ none:1
in expression starting at C:\Users\ASUS\.julia\packages\Molly\yije7\src\Molly.jl:1
ERROR: Failed to precompile Molly [aa0f7f06-fcc0-5ec4-a7f3-a573f33f9c4c] to C:\Users\ASUS\.julia\compiled\v1.7\Molly\jl_794D.tmp.
此后我尝试单独对LLVM库进行相同操作
]using LLVM
同样提示错误
[ Info: Precompiling LLVM [929cbde3-209d-540e-8aea-75f648917ca0]
ERROR: LoadError: type Nothing has no field captures
Stacktrace:
[1] top-level scope
@ C:\Users\ASUS\.julia\packages\LLVM\tVv0H\src\LLVM.jl:14
[2] top-level scope (repeats 2 times)
@ none:1
in expression starting at C:\Users\ASUS\.julia\packages\LLVM\tVv0H\src\LLVM.jl:1
ERROR: Failed to precompile LLVM [929cbde3-209d-540e-8aea-75f648917ca0] to C:\Users\ASUS\.julia\compiled\v1.7\LLVM\jl_BBCA.tmp.
求教问题如何解决
我在 Ubuntu 20 系统下尝试 Julia 1.6 和 1.7 版本都没遇到问题。试试在 Julian 模式下执行:
using Pkg
Pkg.add("Molly")
# 等待安装
using Molly
如果报错,建议贴一下你正在使用的系统和 Julia 版本
我用的win10和1.7版本的Julia,额其实在
Pkg.add("Molly")
安装库的时候就已经有报错了
julia> using Pkg
julia> Pkg.add("Molly")
Updating registry at `C:\Users\ASUS\.julia\registries\General.toml`
Resolving package versions...
Installed ZygoteRules ──── v0.2.2
Installed LLVMExtra_jll ── v0.0.14+2
Installed RealDot ──────── v0.1.0
Installed IRTools ──────── v0.4.5
Installed Zygote ───────── v0.6.37
Installed ChainRules ───── v1.28.1
Installed LLVM ─────────── v4.9.1
Installed LLVMOpenMP_jll ─ v13.0.1+0
Installed CellListMap ──── v0.7.13
Installed Molly ────────── v0.9.0
Updating `C:\Users\ASUS\.julia\environments\v1.7\Project.toml`
[aa0f7f06] + Molly v0.9.0
Updating `C:\Users\ASUS\.julia\environments\v1.7\Manifest.toml`
[ec485272] + ArnoldiMethod v0.2.0
[67c07d97] + Automa v0.8.2
[b99e7846] + BinaryProvider v0.5.10
[00701ae9] + BioAlignments v2.0.0
[37cfa864] + BioCore v2.0.5
[47718e42] + BioGenerics v0.1.1
[7e6ae17a] + BioSequences v2.0.5
[de9282ab] + BioStructures v1.2.1
[3c28c6f8] + BioSymbols v4.0.4
[e1450e63] + BufferedStreams v1.0.0
[69e1c6dd] + CellListMap v0.7.13
[082447d4] + ChainRules v1.28.1
[46823bd8] + Chemfiles v0.10.2
[861a8166] + Combinatorics v1.0.2
[8f5d6c58] + EzXML v1.1.0
[1fa38f19] + Format v1.3.2
[86223c79] + Graphs v1.6.0
[7869d1d1] + IRTools v0.4.5
[1cb3b9ac] + IndexableBitVectors v1.0.0
[d25df0c9] + Inflate v0.1.2
[524e6230] + IntervalTrees v1.0.0
[259c3a9c] + MMTF v1.0.0
[626554b9] + MetaGraphs v0.7.1
[aa0f7f06] + Molly v0.9.0
[99f44e22] + MsgPack v1.1.0
[c1ae055f] + RealDot v0.1.0
[fdea26ae] + SIMD v3.4.1
[7b38b023] + ScanByte v0.3.0
[699a6c99] + SimpleTraits v0.9.4
[860ef19b] + StableRNGs v0.1.2
[69024149] + StringEncodings v0.3.5
[7200193e] + Twiddle v1.1.2
[ddb6d928] + YAML v0.4.7
[e88e6eb3] + Zygote v0.6.37
[700de1a5] + ZygoteRules v0.2.2
[78a364fa] + Chemfiles_jll v0.10.2+0
Precompiling project...
✗ LLVM
✗ Molly
10 dependencies successfully precompiled in 32 seconds (287 already precompiled, 3 skipped during auto due to previous errors)
2 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
倒数的几行预编译报错QAQ