Skip to content

Instantly share code, notes, and snippets.

@egregius313
Created January 17, 2018 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egregius313/e19907c628e47cb3b500923aa520bc38 to your computer and use it in GitHub Desktop.
Save egregius313/e19907c628e47cb3b500923aa520bc38 to your computer and use it in GitHub Desktop.
Bootstrap an OCaml Installation on a Debian or OSX system
PKG_MGR=$(which apt-get brew apt | head -n1)
sudo $PKG_MGR update
sudo $PKG_MGR install -y opam
opam update
opam install core
if [[ $PKG_MGR =~ apt ]]
then
sudo $PKG_MGR install -y utop
elif [[ $PKG_MGR =~ brew ]]
then
opam install -y utop
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment