diff options
| author | Alasdair Armstrong | 2019-05-22 15:33:03 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-05-22 15:36:51 +0100 |
| commit | 0dd3583a0720beeae35432e908ea0c9899d300d7 (patch) | |
| tree | b7a773e090f47a7a490a76811c6a47e1558ba814 /INSTALL.md | |
| parent | 3e56cca75ea1e749fed71cda6a0c8b07659df611 (diff) | |
Fix: Update INSTALL.md with opam switch instructions
Diffstat (limited to 'INSTALL.md')
| -rw-r--r-- | INSTALL.md | 24 |
1 files changed, 20 insertions, 4 deletions
@@ -2,10 +2,16 @@ Installing Sail on Ubuntu and macOS ========================= This note lists the commands needed to get Sail and all dependencies -working on a new Ubuntu install or macOS. We have recently (2018-02-17) tested these -on Xubuntu 16.04 LTS in a virtual machine and on macOS Sierra 10.12.6, so they should +working and built from source on a new Ubuntu install or macOS. We +have recently (2018-02-17) tested these on Xubuntu 16.04 LTS in a +virtual machine and on macOS Sierra 10.12.6, so they should work. Hopefully this will be useful as a reference. +For most users, installing and building the dependencies using OPAM is +likely easier than building everything manually, see: + +https://github.com/rems-project/sail/wiki/OPAMInstall + Basics ------ @@ -35,8 +41,17 @@ OCaml and OPAM Install OPAM. Either directly from [https://opam.ocaml.org] or from the package manager - both should work, but we used the install script -from the website. This should install OCaml 4.05. Don't forget to run -```opam init``` after installing OPAM. +from the website. ```opam init``` must be run after installing OPAM. + +Distributions often contain quite outdated OCaml packages, so we need to make sure that we use an up-to-date OCaml compiler with opam: +``` +opam switch 4.06.1 +``` +For opam versions >=2.0 the command syntax for opam switch is slightly different: +``` +opam switch create ocaml-base-compiler.4.06.1 +``` +After doing opam switch it is important to check that the ocaml tools in your $PATH point at the opam installed toolchain, rather than any installed by the distribution package manager. We now need the following packages from OPAM. ``` @@ -47,6 +62,7 @@ opam install menhir opam install omd ``` + Ott --- |
