Build IOST
Install Golang
Go 1.13 or newer is needed. You can refer to here for installation. After installing, running
go version
You will see outputs contains "go version go1.13".
You may need to add the following environment variables to make your golang work better.
# Golang export GOPATH=$(go env GOPATH) export PATH=$PATH:$GOPATH/bin
Install Git LFS
Git LFS (v2.5.2 or newer) is needed.
Install on MacOS
brew install git-lfs && git lfs install
Install on Ubuntu
# see also: https://github.com/git-lfs/git-lfs/wiki/Installation
sudo apt install -y git-lfs && git lfs install
Install on CentOS
yum --enablerepo=epel install -y git-lfs && git lfs install
Clone Code
mkdir -p $GOPATH/github.com/iost-official/
cd $GOPATH/github.com/iost-official/
git clone https://github.com/iost-official/go-iost.git
Build IOST
cd $GOPATH/src/github.com/iost-official/go-iost
git lfs pull
cd vm/v8vm/v8/; make deploy; cd ../../..
make build install