9

我已经安装了,opam之后我可以成功访问ocaml,,。ocamlcbuildocaml

但我正在阅读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  

但是我仍然不知道如何运行这个工具。

4

1 回答 1

16

您需要运行opam install core才能获得corebuild.

更一般地说,您应该查看此处的安装说明,它会告诉您要安装哪些库。请注意,这corebuild是一个简单的包装器ocamlbuild,它假定您已经core安装,并为您提供默认使用它的选项。

于 2013-12-09T04:28:58.130 回答