尝试在安装了Julia 0.5.0的Windows 10笔记本电脑上更新已安装的软件包时,出现以下关于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
================================================================================
我也很惊讶朱莉娅无法找到'Gadfly.jl',尽管事实上它是按照上面的输出所示安装的。
谢谢。
答案 0 :(得分:1)
这可能是由于您的包目录的路径区分大小写。在指定本地包目录之后我遇到了同样的问题,直到我意识到,由于this discussion,我在指定路径中的大小写错误。
我非常确定C:\\users
应为C:\\Users
,但请检查当前的其余路径:
C:\users\caitling\emacs251\.julia\
然后你可以通过
检查这是否是问题ENV["JULIA_PKGDIR"] ="C:\\Users\\caitling\\emacs251\\.julia"
Pkg.build("Rmath")