How to install corebuild in ocaml

I installed opam and after that I can successfully access ocamlc , buildocaml , buildocaml .

But I'm reading Real World OCaml , which asks me to run a tool called corebuild .

I can not 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 I do not know how to run this tool.

+8
ocaml opam
source share
1 answer

You need to run opam install core to get corebuild .

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

+13
source share

All Articles