Install OCaml Compiler
Learn how to install the OCaml compiler and the REPL utop on your local machine as well as OCaml's compilation process.
We'll cover the following...
OCaml compiler
The recommended way to install the OCaml compiler on a local machine is to use the package manager OPAM.
First, let’s use the following script to install OPAM:
$ sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)
The script checks the architecture of the computer and downloads and installs the suitable pre-compiled binary to /usr/local/bin
by default.
Verify that OPAM has been installed ...