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 getcorebuild
.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 aroundocamlbuild
, and it assumes that you havecore
installed, and gives you the option of using it by default.