Bash - installing Ocaml-top



我正在尝试从命令行安装ocaml-top IDE。我已经使用Homebrew(Brew install opam,Brew install ocaml(安装了OCAML和OPAM,但是当我输入时:

opam install ocaml-top

我得到

[ERROR] No OPAM root found at /Users/student/.opam.

我需要将其添加到我的路径上吗?

更新:建议有帮助,但是包装名称有一个问题:我得到

[ERROR] No package named ocaml-top found.

当您运行brew install opam时,您似乎错过了以下警告,尤其是opam init

$ 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-functions

相关内容

  • 没有找到相关文章

最新更新