Build Terra core
Contents
Build Terra core#
Terra core is the official Golang reference implementation of the Terra node software. Use this guide to install Terra core and terrad
, the command-line interface and daemon that connects to Terra and enables you to interact with the Terra blockchain.
Get the Terra core source code#
Use
git
to retrieve Terra core, and check out themain
branch, which contains the latest stable release.
You can find out the latest tag on the tags page or via autocomplete in your terminal: type git checkout v
and press <TAB>
.
```bash
git clone https://github.com/terra-money/core
cd core
git checkout [latest version] # ex., git checkout v2.0.0-rc.0
```
Build Terra core. This will install the
terrad
executable to yourGOPATH
environment variable.make install
Verify that Terra core is installed correctly.
terrad version --long
Example:
name: terra server_name: terrad client_name: terrad version: 0.3.0-24-g3684f77 commit: 3684f77faadf6cf200d18e15763316d5d9c5a496 build_tags: netgo,ledger go: go version go1.18.2 darwin/amd64 # ...followed by a lot of dependenecies
Tip
If the terrad: command not found
error message is returned, confirm that the Go binary path is correctly configured by running the following command:
export PATH=$PATH:$(go env GOPATH)/bin