We use two functional programming languages in COS 326 course: OCaml and F#.
OPAM is the package manager for OCaml. It is the recommended way to install the OCaml compiler and OCaml packages. -OCaml installation instructions
Once Opam is installed, the same instructions work on all platforms. But the installation of Opam will work differently on different operating systems.