我已安装opam
,之后我可以成功访问ocaml
,ocamlc
,buildocaml
。
但我正在阅读Real World OCaml,要求我运行一个名为corebuild
的工具。
我无法安装(或运行)corebuild
。
如果我搜索sudo find / -name corebuild...
,我可以看到
/home/abhishek/.opam/repo/default/packages/core/core.109.38.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.42.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.35.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.34.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.47.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.41.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.32.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.37.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.45.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.36.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.40.00/files/corebuild
但是我仍然不知道如何运行这个工具。
答案 0 :(得分:13)
您需要运行opam install core
才能获得corebuild
。
更一般地说,您应该查看安装说明here,它将显示要安装的库。请注意,corebuild
是ocamlbuild
周围的简单包装,它假定您已安装core
,并且默认情况下为您提供了使用它的选项。