This guide will teach you how to build mm2 on Ubuntu.
Table of Contents
Please Note
AtomicDEX-API produces a binary called mm2.
If you’d like to simplify this process, use MMTools.
Instructions
-
Open the Terminal or SSH into your server.
-
Update the system:
sudo apt-get update -
Install dependencies:
sudo apt-get install build-essential cmake libtool autotools-dev automake autoconf pkg-config libssl-dev clang libclang-dev -
Install Rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -
Install specific rustup nightly:
rustup install nightly-2021-05-17 -
Make it the default:
rustup default nightly-2021-05-17 -
Add rustfmt-preview:
rustup component add rustfmt-preview -
Clone AtomicDEX-API:
git clone https://github.com/KomodoPlatform/atomicDEX-API -
Enter the AtomicDEX-API directory:
cd atomicDEX-API -
Build AtomicDEX-API:
cargo build --features native --release
You have now built mm2.
The mm2 binary will be located : target/release
You can now setup mm2.