Pre-requisites
If you'd like to install Namada from source you will have to install some dependencies first:
- Rust (opens in a new tab)
- Git (opens in a new tab)
- Clang (opens in a new tab)
- OpenSSL (opens in a new tab)
- LLVM (opens in a new tab)
Rust
At the end of the installation, make sure that Cargo's bin directory $HOME/.cargo/bin
is available on your PATH environment variable. You can either restart your shell or run source $HOME/.cargo/env
to continue.
If you already have Rust installed, make sure you're using the latest version by running:
rustup update
Remaining dependencies
Then, install the remaining dependencies.
Ubuntu: running the following command should install everything needed:
sudo apt-get install -y make git-core libssl-dev pkg-config libclang-12-dev build-essential protobuf-compiler libudev-dev
Mac: installing the Xcode command line tools should provide you with almost everything you need:
xcode-select --install
protoc
is also required. On Mac, you can install it with Homebrew
:
brew install protobuf
When running
protoc --version
It should output at least:
libprotoc 3.12.0
Please refer to protoc-installation doc (opens in a new tab) for other installation options.