How to build Kepler
Building Kepler isn't difficult, however, it does require a series of requisites and steps which we will review and follow in this tutorial.
OS and Rust Version Supported for building Kepler:
- Linux (64bit only)
- Rust 1.35+
The best method for installing rust on Linux/Mac/FreeBSD is by using Rustup: https://rustup.rs/
Open a terminal
Paste the following (you can find this information on the Rustup website)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Select default options on the installer and press enter
After Rustup is installed, loging out and logging in again will allow you to use Rust and Cargo from the terminal. If you're in a hurry, you can paste this on your terminal after installing:
Dependencies for Linux
Below are Debian Linux dependencies, these may vary depending on which Distribution you're using
sudo apt install build-essential git clang libncurses-dev zlib1g-dev cmake libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev pkg-config libssl-dev llvm
Dependencies for MacOS
Install XCode from the App store, once installed, open a terminal and type
- Install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
After homebrew finishes installing:
brew install pkg-config openssl
NOTE: Please make sure you've installed Rust + Cargo as explained at the beginning of this tutorial.
We have two options for building Kepler:
- Direct from Github:
git clone https://github.com/keplernetwork/kepler && cd kepler && cargo build --release
From a release, choose the most recent version here and download the source:
- Decompress the file you downloaded
- Open the terminal
- Go into the decompressed folder
cargo build --release
When Kepler finishes building, you'll find the executable in target/release/kepler
You can run it by typing on your terminal:
Kepler will now begin to sync.