如何在ocaml中安装corebuild

时间:2013-12-09 02:21:51

标签: ocaml opam

我已安装opam,之后我可以成功访问ocamlocamlcbuildocaml

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

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

1 个答案:

答案 0 :(得分:13)

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

更一般地说,您应该查看安装说明here,它将显示要安装的库。请注意,corebuildocamlbuild周围的简单包装,它假定您已安装core,并且默认情况下为您提供了使用它的选项。