문제

I have installed opam, and after this I can access ocaml, ocamlc, buildocaml successfully.

But I am reading Real World OCaml which is asking me to run a tool called corebuild.

I am not able to install (or run) corebuild.

If I search for sudo find / -name corebuild... I can see files like

/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  

But still then I don't know how to run this tool.

도움이 되었습니까?

해결책

You need to run opam install core to get corebuild.

More generally, you should look at the install instructions here, which will show you which libraries to install. Note that corebuild is a simple wrapper around ocamlbuild, and it assumes that you have core installed, and gives you the option of using it by default.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top