Skip to content

getting started_how to build

Hayarobi Park edited this page Dec 4, 2018 · 5 revisions

Mac OS

  1. If you haven't already, install homebrew
  2. Install go, glide, cmake and (optionally) protobuf
brew install go
brew install glide
brew install cmake
  1. Install aergo
go get -d github.com/aergoio/aergo
cd `go env GOPATH`/src/github.com/aergoio/aergo
git submodule init
git submodule update
make
  1. Run server
./bin/aergosvr

Generating protobuf file

Only need if you changeed protobuf files.

  1. Install protobuf and protoc-gen-go
brew install protobuf
GIT_TAG="v1.1.0" # set version of protoc-gen-go to 1.1.0, on which aergo v0.8.x depends.
go get -u github.com/golang/protobuf/protoc-gen-go
git -C "$(go env GOPATH)"/src/github.com/golang/protobuf checkout $GIT_TAG
go install github.com/golang/protobuf/protoc-gen-go
  1. Generate from protobuf files
make protoc
  1. Install aergo and so on.