我正在尝试从命令行安装。我已经安装了使用Homebrew的Ocaml和OPAM (brew安装opam,brew安装ocaml),但是当我进入时:
opam install ocaml-top我得到了
[ERROR] No OPAM root found at /Users/student/.opam.我需要把这个加到我的道路上吗?
更新:建议得到了帮助,但是包名有一个问题:我得到了
[ERROR] No package named ocaml-top found.发布于 2017-04-30 16:59:29
在运行opam init时,您似乎忽略了以下警告,特别是brew install opam
$ brew info opam
...
==> Caveats
OPAM uses ~/.opam by default for its package database, so you need to
initialize it first by running (as a normal user):
$ opam init
Run the following to initialize your environment variables:
$ eval `opam config env`
To export the needed variables every time, add them to your dotfiles.
* On Bash, add them to `~/.bash_profile`.
* On Zsh, add them to `~/.zprofile` or `~/.zshrc` instead.
Documentation and tutorials are available at https://opam.ocaml.org, or
via "man opam" and "opam --help".
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functionshttps://stackoverflow.com/questions/43706895
复制相似问题