Installing Prerequisites / Dependancies for Cosmos SDK Blockchain Development

Installing Prerequisites / Dependancies for Cosmos SDK Blockchain Development

In order to build Cosmos SDK blockchains and use Ignite CLI, you will need to to have the following:

  • Install Golang
  • Update Environment Variables
  • Install Dependancies

Install Golang:

FYI - Cosmos SDK was written in Golang.

On Mac:

Install Link

On Linux:

Install Link

Update Environment Variables

You should have a .bash_profile or .bashrc file in your home directory. You can see them with the ls -a command. Also, if using mac the file might be .zshrc

You can check your profile, with echo $PROFILE

Open the file and copy and paste these into it and save the file.

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:/usr/local/bin

Start a new shell/command promot, or use this command to update it.

source .bashrc

If you are using .bash_profile or .zshrc then substite it instead of .bashrc above.

Install Dependancies

For Linux

sudo apt update -y
sudo apt install build-essential -y
sudo apt install gcc -y
sudo apt install git -y
sudo apt install wget -y
sudo apt install curl -y

For Mac:

brew install wget
brew install curl

Now you are ready to begin. Some of these steps are mentioned in the following tutorials, but you can ignore them if you have already completed them.