2-3: Install Pocket
Now we're ready to install the Pocket software. We'll be installing Pocket Core which, as mentioned, was developed in Go. So it requires the Go compiler, but that was installed with Go in the previous step.
To install Pocket Core, do the following:
- Create a project directory
sudo mkdir -p $GOPATH/src/github.com/pokt-network
- CD to the project directory
cd $GOPATH/src/github.com/pokt-network
- Get the Pocket Core code
sudo git clone https://github.com/pokt-network/pocket-core.git
- CD to the code directory
cd pocket-core
- Checkout the latest version
sudo git checkout tags/RC-0.7.1
- Build project code
go build -o $GOPATH/bin/pocket $GOPATH/src/github.com/pokt-network/pocket-core/app/cmd/pocket_core/main.go
- Test the installation
pocket version
At this point we have all the software we need to run our Pocket node. But we'll need to configure it first. We'll start that next.