Clang.jl 无法使用


#1

在这之前,我已经pkg.add Clang了

# code
julia> using Clang
[ Info: Precompiling Clang [40e3b903-d033-50b4-a0cc-940c62c95e31]
ERROR: LoadError: LoadError: Clang was not build properly. Please run Pkg.build("Clang").
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] top-level scope at C:\Users\Dragon\.julia\packages\Clang\rpidm\src\LibClang.jl:8
 [3] include at .\boot.jl:326 [inlined]
 [4] include_relative(::Module, ::String) at .\loading.jl:1038
 [5] include at .\sysimg.jl:29 [inlined]
 [6] include(::String) at C:\Users\Dragon\.julia\packages\Clang\rpidm\src\Clang.jl:1
 [7] top-level scope at none:0
 [8] include at .\boot.jl:326 [inlined]
 [9] include_relative(::Module, ::String) at .\loading.jl:1038
 [10] include(::Module, ::String) at .\sysimg.jl:29
 [11] top-level scope at none:2
 [12] eval at .\boot.jl:328 [inlined]
 [13] eval(::Expr) at .\client.jl:404
 [14] top-level scope at .\none:3
in expression starting at C:\Users\Dragon\.julia\packages\Clang\rpidm\src\LibClang.jl:7
in expression starting at C:\Users\Dragon\.julia\packages\Clang\rpidm\src\Clang.jl:3
ERROR: Failed to precompile Clang [40e3b903-d033-50b4-a0cc-940c62c95e31] to C:\Users\Dragon\.julia\compiled\v1.1\Clang\uO7n9.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1197
 [3] _require(::Base.PkgId) at .\loading.jl:960
 [4] require(::Base.PkgId) at .\loading.jl:858
 [5] require(::Module, ::Symbol) at .\loading.jl:853

然后当我根据提示Please run Pkg.build(“Clang”)继续操作,可是,仍然又有错误

(v1.1) pkg> build("Clang")
ERROR: could not determine command

#2

创建代码错误,应使用pkg > build Clang


#3

其次,还应当使用管理员身份运行


#4

Pkg的操作注意使用管理员身份运行