Skip to content

Instantly share code, notes, and snippets.

@jdh30
Last active December 13, 2020 08:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jdh30/e7ed5d501f1446d6bd6d76d6578dafdf to your computer and use it in GitHub Desktop.
Save jdh30/e7ed5d501f1446d6bd6d76d6578dafdf to your computer and use it in GitHub Desktop.
Script to install and initialize OCaml for microservice development (TCP+HTTP+JSON) on an Ubuntu Linux box (e.g. in Amazon's AWS Cloud)
# .NET Core 2.1 with Ubuntu Server 18.04 - Version 1.0 - ami-f4f4cf91
sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)
sudo apt-get update
sudo apt-get install make m4 gcc zip aspcud emacs libssl-dev ncurses-dev pkg-config tuareg-mode libffi-dev bubblewrap linux-tools-common linux-tools-aws
opam init
eval $(opam env)
opam install ocamlfind core async async_ssl cohttp yojson ppx_deriving ocp-indent merlin cohttp-async
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment