Skip to content

Instantly share code, notes, and snippets.

@eahydra
Forked from jdh30/InstallOCaml.sh
Created October 11, 2017 03:08
Show Gist options
  • Save eahydra/17eb326ad4873dfcb2b9ff9c3203a2f5 to your computer and use it in GitHub Desktop.
Save eahydra/17eb326ad4873dfcb2b9ff9c3203a2f5 to your computer and use it in GitHub Desktop.
Script to install and initialize OCaml for microservice development (TCP+HTTP+JSON) on a Linux box
sudo apt-get update
sudo apt-get install make m4 gcc zip aspcud emacs libssl-dev ncurses-dev pkg-config tuareg-mode libffi-dev
wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin
eval `opam config env`
opam update
opam switch 4.03.0
opam install user-setup
opam install ocamlfind core async async_ssl cohttp yojson ppx_deriving ocp-indent merlin
opam install user-setup
opam user-setup install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment