2013-12-09 97 views
8

我已經安裝了opam,之後我可以成功訪問ocaml,ocamlc, buildocaml如何在ocaml中安裝corebuild

但我正在閱讀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 

但還是那麼我不知道該如何運行此工具。

回答

13

您需要運行opam install core才能獲得corebuild

更一般地,您應該查看安裝說明here,它會告訴您要安裝哪些庫。請注意,corebuild是一個圍繞ocamlbuild的簡單包裝,它假定您已安裝core,併爲您提供默認使用它的選項。