-
Notifications
You must be signed in to change notification settings - Fork 28
Install from source
Installing Mintlayer from source allows you to access the latest features and updates directly from the repository. Follow the steps below to compile and install Mintlayer from source.
- Ensure you have
git
installed on your system. - Ensure you have
Rust
andCargo
installed. If not, you can install them via Rustup.
-
Setup the Repository
First, clone the Mintlayer repository to your local machine:
git clone http://git.mintlayer.org/mintlayer/mintlayer-core.git
Navigate to the Directory
Change your current directory to the cloned repository:
cd mintlayer-core
Checkout the latest tag (optional)
We use tags to mark stable releases. If you prefer to encounter fewer issues, consider checking out the most recent tag. To view the list of tags, use:
git show-ref --tags
This command will display all the tags, for example:
e7e969e303561141c239729f904843cc78137787 refs/tags/v0.1.1
To switch to the latest one, use:
git checkout tags/v0.1.1
-
Compile the Source
Use Cargo to compile the source files:
cargo build --release
NOTE: By using the
--release
flag, you are building the binaries optimized for production release. Alternatively, you can omit this flag for a faster build. -
Run Mintlayer Node
After successful compilation, you can run Mintlayer:
./target/release/node-daemon
-
Open a new terminal and run the Wallet
cd mintlayer-core ./target/release/wallet-cli
You've now successfully installed Mintlayer from source. For more configurations and advanced usage, refer to the official Mintlayer documentation.