【发布时间】:2019-02-05 12:48:48
【问题描述】:
我正在使用 Ubuntu 14.04 开发 RDP,并尝试安装 ocaml。
我正在尝试将我的 ocaml 编译器更新到 4.05.0 或更高版本,但 opam switch list 只提供了一个编译器 system C system System compiler (4.01.0)。我的opam update 也给了我下面的日志。
[ERROR] Your version of OPAM (1.1.1) is not recent enough to read ~/.opam/repo/default/repo. Upgrade OPAM to a more recent version (at least 2.0) to read this file correctly.
[ERROR] Skipping https://opam.ocaml.org as the repository is not available.
Updating ~/.opam/repo/compiler-index ...
Updating ~/.opam/compilers/ ...
Updating ~/.opam/repo/package-index ...
Updating ~/.opam/packages/ ...
Updating the cache of metadata (~/.opam/state.cache) ...
Everything is up-to-date.
知道怎么做吗?提前感谢您的帮助。
更新: 我需要使用二进制分发单独安装更新的 opam 版本。有了这个
sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)
命令我可以安装它,但它会提示我在哪里安装它, 但我必须自动化安装,以便用户端没有交互。有什么办法吗?
更新 2:
找到了一种使用 ppa 的方法,请参阅我的答案。
【问题讨论】:
标签: bash ocaml ubuntu-14.04 opam