From 0f121c12a842002961d0be4dd4287816d5c89be5 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 20 Jan 2019 22:15:01 +0100 Subject: README: update build instructions --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 025cad6..beb4f6f 100644 --- a/README.md +++ b/README.md @@ -83,24 +83,30 @@ If you are new to OCaml, you need to install [opam](http://opam.ocaml.org/) first. Then install the correct version of the compiler, the build tools, and the build dependencies: -``` -opam switch 4.07.0 -opam install oasis -opam install fileutils lwt lwt_ppx lwt_log ocplib-endian ounit pcre ppx_deriving_yojson sha toml xml-light batteries +```bash +sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/2.0.2/shell/install.sh) +opam init --disable-sandboxing +eval $(opam env) +opam switch create 4.07.0 +eval $(opam env) +opam install oasis -y +eval $(opam env) +opam install fileutils lwt lwt_ppx lwt_log ocplib-endian ounit pcre ppx_deriving_yojson sha toml xml-light batteries ocaml-protoc ctypes-foreign -y ``` To build the project and run the unit tests, do this: -``` +```bash ./build-setup.sh ./configure --enable-tests make make test +make install ``` If the project gets in a weird state, and isn't building correctly, you can clean it up with -``` +```bash ocaml setup.ml -distclean ``` -- cgit v1.2.3