Installing Dafny
Follow the instructions below to install the command line version of Dafny.
These instructions have been tested for Mac OS, but should
also work for Linux and Windows.
Windows
- Download and unzip the Boogie distribution from the Boogie
project webpage. The Boogie
distribution also includes Dafny.
- Download latest version of the Z3 Theorem Prover.
- Create a Dafny test file and call it
test.dfy .
- While in the Boogie directory, check whether Dafny is working by executing:
Dafny.exe /compile:0 test.dfy
Linux and Mac OS
- Download and unzip the Boogie distribution from the Boogie
project webpage. The Boogie
distribution also includes Dafny.
- Download latest version of the Z3 Theorem Prover. Build it
following the instructions in the README file.
- Copy the Z3 executable to the Boogie directory and rename it
z3.exe .
- Install Mono. You
will need version 2.8 or higher.
- Create a Dafny test file and call it
test.dfy .
- While in the Boogie directory, check whether Dafny is working by executing:
mono --runtime=v4.0.30319 Dafny.exe /compile:0 test.dfy
|