Building Netrium - netrium/Netrium GitHub Wiki

Building Netrium from Source

System Requirements

  • A Unix based (Linux or macOS) operating system, or Microsoft Windows
  • For very large contracts with a high number of conditional paths, you will need at least 512mb of memory.
  • Contract storage depends on a number of factors, and can easily be as large as 30mb per contract (when using the --fast compilation option. Without --fast, it can hit hundreds of mb).

Dependencies

Building the source

This assumes that you have the Haskell Platform and GraphViz installed.

  1. Get the latest release from GitHub (either download it, or use git to clone it)
  2. Open the terminal window/command line in your operating system
  3. Update Cabal, using the command cabal update. If you see error messages here, ensure that the Haskell Platform succesfully installed.
  4. Navigate to the folder you downloaded Netrium to, and issue the command cabal install