Installing Substrate Dependencies
Installing Substrate Dependencies
Substrate is a modular framework that enables you to create purpose-built blockchains by composing custom or pre-built components. Below is a markdown document that you can use as a template for creating a guide on installing Substrate dependencies.
1. Install Rust
Substrate is developed using Rust; hence, Rust is a prerequisite for Substrate. Install Rust using rustup by running the following command in your terminal:
After completing the installation, restart your terminal and run:
Or, add the following line to your shell profile file (e.g., ~/.bashrc
or ~/.zshrc
):
Update Rust
Keep your Rust installation up to date by running:
2. Install Additional Libraries
Substrate has several library dependencies. Install them using the appropriate commands for your operating system:
For Ubuntu
For macOS
3. Install Substrate
With Rust and the necessary libraries installed, proceed to install Substrate:
4. Verify Installation
Check your Substrate installation by running:
This command should output the installed Substrate version.
5. Configure Rust Toolchain
Configure the Rust toolchain for Substrate by running:
Completion
At this point, you should have a working Substrate development environment. Regularly check for updates and keep your installations current by running rustup update
and cargo update
.
Remember to replace the placeholder text with the actual content, and feel free to modify the structure and formatting to suit your preferences and requirements.
Last updated