使用 Julia 安装模块

Installing modules with Julia

我正在尝试在集群上安装一些 DistributionsStatsBase 模块,但我失败了。这是我所做的以及我收到的错误消息:

julia> Pkg.add()
ERROR: `add` has no method matching add()  # Not really relevant for our problem I guess

Pkg.add("Distributions")
ERROR: could not spawn `git version`: no such file or directory (ENOENT)
 in _jl_spawn at process.jl:217
 in spawn at process.jl:348
 in open at ./process.jl:397
 in readbytes at ./process.jl:461
 in version at ./pkg/git.jl:34
 in init at ./pkg/dir.jl:32
 in __cd#227__ at ./pkg/dir.jl:28
 in add at pkg.jl:20

julia> Pkg.installed()
ERROR: could not spawn `git version`: no such file or directory (ENOENT)
 in _jl_spawn at process.jl:217
 in spawn at process.jl:348
 in open at ./process.jl:397
 in readbytes at ./process.jl:461
 in version at ./pkg/git.jl:34
 in init at ./pkg/dir.jl:32
 in cd at pkg/dir.jl:25
 in installed at pkg.jl:25

julia> Pkg.status()
ERROR: could not spawn `git version`: no such file or directory (ENOENT)
 in _jl_spawn at process.jl:217
 in spawn at process.jl:348
 in open at ./process.jl:397
 in readbytes at ./process.jl:461
 in version at ./pkg/git.jl:34
 in init at ./pkg/dir.jl:32
 in cd at pkg/dir.jl:25
 in status at pkg.jl:28 (repeats 2 times)

我是应该联系维护集群的人还是我自己解决这个问题?

您是如何在这些机器上安装 Julia 的? Julia 需要 git 才能让包管理器工作,但似乎 git 不存在。您可能需要集群管理员来安装它,或者您可以手动安装软件包。