在 Windows 上使用 Julia 1.6.0 RC1 时,GR_jll 始终无法预编译

Prz*_*fel 5 julia

我使用 Julia 1.6.0 RC1,所有包都工作得很好,除了GR_jll预编译失败之外。\n结果也Plots.jl没有得到预编译,因为它有 GR 作为依赖项。

\n

我在安装软件包时看到的消息是:

\n
5 dependencies successfully precompiled in 40 seconds (201 already precompiled, 1 skipped during auto due to previous er\nrors)\n
Run Code Online (Sandbox Code Playgroud)\n

另一方面,当尝试强制预编译时,我看到:

\n
julia> Pkg.precompile()\nPrecompiling project...\n  Progress [========================================>]  1/1\n  \xe2\x9c\x97 GR_jll\n0 dependencies successfully precompiled in 5 seconds (201 already precompiled)\n
Run Code Online (Sandbox Code Playgroud)\n

这非常烦人,我的模块仍未编译。我应该怎么做才能修复这种情况?

\n

Prz*_*fel 3

截至今天,GR_jll它似乎是唯一需要 Windows 上的管理权限才能安装的模块。

  1. 以管理员身份运行控制台

  2. 启动 Julia 并运行以下脚本:

    using Pkg
    Pkg.build("GR_jll")
    Pkg.precompile()
    
    Run Code Online (Sandbox Code Playgroud)

我看到其他人声称遇到了与我相同的问题,1 skipped during auto due to previous errors因此希望这对其他 Windows 用户有所帮助。