在 Julia 0.5.0 中更新包时出现混淆错误

Confusing error when updating packages in Julia 0.5.0

当尝试更新我的 Windows 10 笔记本电脑上已安装的软件包并安装了 Julia 0.5.0 时,出现以下关于 Rmath 的错误:

C:\Users\CaitlinG>julia -e "Pkg.update()"
INFO: Updating METADATA...
INFO: Updating cache of ColorTypes...
INFO: Updating cache of Gadfly...
INFO: Updating cache of StatsBase...
INFO: Updating cache of DataFrames...
INFO: Updating cache of FixedPointNumbers...
INFO: Updating cache of Colors...
INFO: Updating cache of DataFrames...
INFO: Computing changes...
INFO: Upgrading ColorTypes: v0.2.8 => v0.2.11
INFO: Upgrading Colors: v0.6.8 => v0.6.9
INFO: Upgrading FixedPointNumbers: v0.1.8 => v0.2.1
INFO: Upgrading Gadfly: v0.5.0 => v0.5.1
INFO: Upgrading StatsBase: v0.11.0 => v0.11.1
INFO: Building Rmath
================================[ ERROR: Rmath ]================================


LoadError: ArgumentError: Module BinDeps not found in current path.
Run `Pkg.add("BinDeps")` to install the BinDeps package.
while loading C:\users\caitling\emacs251\.julia\v0.5\Rmath\deps\build.jl, in exp
ression starting on line 1

================================================================================


================================[ BUILD ERRORS ]================================


WARNING: Rmath had build errors.

 - packages with build errors remain installed in C:\users\caitling\emacs251\.ju
lia\v0.5
 - build the package(s) and all dependencies with `Pkg.build("Rmath")`
 - build a single package by running its `deps/build.jl` script

================================================================================

我也对 Julia 无法找到 'Gadfly.jl' 感到困惑,尽管它已安装,如上面的输出所示。

谢谢。

这可能是因为您的包目录的路径区分大小写。在指定本地包目录后我遇到了同样的问题,直到我意识到,感谢 this discussion,我在指定路径中的大写错误。

我很确定 C:\users 应该是 C:\Users 但请检查您当前路径的其余部分:

C:\users\caitling\emacs251\.julia\

然后您可以通过

检查这是否是问题所在
ENV["JULIA_PKGDIR"] ="C:\Users\caitling\emacs251\.julia"
Pkg.build("Rmath")