sudo apt-get install opam
opam init
eval $(opam env)
which ocaml
ocaml --version
opam switch list-available
opam switch create 4.14.0
eval $(opam env)
which ocaml
ocaml --version
opam install utop
utop
A script named : hello.ml
#!/usr/bin/env utop
(* simple example script *)
let x= 42;;
Printf.printf "the response is %d " x ;;