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
- Haskell Platform for your operating system
- Graphviz
Building the source
This assumes that you have the Haskell Platform and GraphViz installed.
- Get the latest release from GitHub (either download it, or use git to clone it)
- Open the terminal window/command line in your operating system
- Update Cabal, using the command
cabal update
. If you see error messages here, ensure that the Haskell Platform succesfully installed. - Navigate to the folder you downloaded Netrium to, and issue the command
cabal install