Bash-安装Ocaml top

Bash-安装Ocaml top,bash,terminal,path,ocaml,opam,Bash,Terminal,Path,Ocaml,Opam,我正在尝试从命令行安装Ocaml Top IDE。我已经使用自制软件安装了Ocaml和OPAM(brew安装OPAM,brew安装Ocaml),但当我进入: opam install ocaml-top 我明白了 我需要将此添加到我的路径中吗 更新:建议有帮助,但包名有问题:I get [ERROR] No package named ocaml-top found. 运行brew install opam时,您似乎错过了以下警告,尤其是opam init: $ brew info opam

我正在尝试从命令行安装Ocaml Top IDE。我已经使用自制软件安装了Ocaml和OPAM(brew安装OPAM,brew安装Ocaml),但当我进入:

opam install ocaml-top
我明白了

我需要将此添加到我的路径中吗

更新:建议有帮助,但包名有问题:I get

[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

运行
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

谢谢,但现在我得到:[错误]没有找到名为ocaml top的包。包是否有不同的注册名称?从typerex.com获得此说明谢谢,但现在我得到:[错误]未找到名为ocaml top的包。包是否有不同的注册名称?从typerex.com上得到这个指令