Skip to content

Commit

Permalink
Update installation instructions for Windows (using opam).
Browse files Browse the repository at this point in the history
  • Loading branch information
strub committed Oct 10, 2017
1 parent 10a2fc7 commit 56964f5
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions README.md
Expand Up @@ -30,10 +30,9 @@ EasyCrypt uses the following third-party tools/libraries:

* OCaml ini-files <http://archive.ubuntu.com/ubuntu/pool/universe/o/ocaml-inifiles/>

On POSIX systems (GNU/Linux, *BSD, OS-X), we recommend people to
On POSIX/Win32 systems (GNU/Linux, *BSD, OS-X), we recommend that users
install EasyCrypt and all its dependencies via `opam`.


Installing requirements using OPAM (POSIX systems)
--------------------------------------------------------------------

Expand Down Expand Up @@ -84,8 +83,42 @@ Opam can be easily installed from source or via your packages manager:

See [https://opam.ocaml.org/doc/Install.html] for how to install opam.

See [https://opam.ocaml.org/doc/Usage.html] for how to initialize opam
See [https://opam.ocaml.org/doc/Usage.html] for how to initialize opam.

Installing requirements using OPAM (non-POSIX systems)
--------------------------------------------------------------------

You can install all the needed dependencies via the opam OCaml packages manager.

1. Install the opam Ocaml packages manager, following the instructions at:

https://fdopen.github.io/opam-repository-mingw/installation/

2. Add the EasyCrypt repository:

$> opam repository add easycrypt git://github.com/EasyCrypt/opam.git
$> opam update

3. Optionally, select the EasyCrypt (git) branch you want to use:

$> opam pin -n add easycrypt https://github.com/EasyCrypt/easycrypt.git#branch

where `branch` is the branch name you want to use (e.g. `aprhl`).

4. Use opam to install the system dependencies:

$> opam install depext depext-cygwinports
$> opam depext easycrypt

5. Add the EasyCrypt meta-packages:

$> opam install --deps-only easycrypt
$> opam install alt-ergo

6. You can download extra provers at the following URLs:

- Z3: https://github.com/Z3Prover/z3
- EProver: http://wwwlehre.dhbw-stuttgart.de/~sschulz/E/E.html

Configuring Why3
====================================================================
Expand Down

0 comments on commit 56964f5

Please sign in to comment.