Build MM2 On Ubuntu

This guide will teach you how to build mm2 on Ubuntu.

Table of Contents

Please Note

AtomicDEX-API produces a binary called mm2.

Instructions

  1. Open the Terminal or SSH into your server.

  2. Update the system:

sudo apt-get update

  1. Install dependencies:

sudo apt-get install build-essential cmake libtool autotools-dev automake autoconf pkg-config libssl-dev clang libclang-dev

  1. Install Rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

  1. Install specific rustup nightly:

rustup install nightly-2020-10-25

  1. Make it the default:

rustup default nightly-2020-10-25

  1. Add rustfmt-preview:

rustup component add rustfmt-preview

  1. Clone AtomicDEX-API:

git clone https://github.com/KomodoPlatform/atomicDEX-API

  1. Enter the AtomicDEX-API directory:

cd atomicDEX-API

  1. Build AtomicDEX-API:

cargo build --features native --release

You have now built mm2.

The mm2 binary will be located : target/release

You can run it and start trading.