The following preparations are required to successfully compile ontology:
- Golang version 1.9 and above
- Install the third-party package management tool Glide
- The right Go language development environment
- Operating systems supported by the Golang
Deploy | Get ontology
Get from source
Clone Ontology warehouse to $GOPATH/src/github.com/ontio Directory
$ git clone https://github.com/ontio/ontology.git
Or
$ go get github.com/ontio/ontology
Glide pull dependent libraries with third-party package management tools
$ cd $GOPATH/src/github.com/ontio/ontology$ glide install
Compiling the source code with make
$ make
Two executable programs are generated after a successful compilation
ontology
: Node program/node control procedure provided by command line
Get from release
You can download at release page.
Note: The dependencies that are encountered during the installation process cannot be downloaded by glide if the dependency needs to be github.com