The charts below show how Hyperchain’s requirements map onto various platforms.
|RHEL||6 or later||amd64, 386|
|CentOS||6 or later||amd64, 386|
|SLES||11SP3 or later||amd64, 386|
|Ubuntu||14.04 or later||amd64, 386|
|macOS||10.8 or later||amd64, 386|
Hyperchain uses the Go programming language for its components, thus we need to install Go for developing.
Go provides binary distributions for Mac OS X, Linux, and Windows. If you are using a different OS, you can download the Go source code and install from source.
Download the latest version of Go for your platform here:
Downloads - version
1.7.x or above
Follow the instructions for your platform to install the Go tools: Install the Go tools. It is recommended to use the default installation settings.
- On Mac OS X and Linux, by default Go is installed to directory
/usr/local/go/, and the
GOROOTenvironment variable is set to
- Also set the
GOROOT/binvariable, which is used to run Go command.
Your Go working directory (
GOPATH) is where you store
your Go code. It can be any path you choose but must be separate from
your Go installation directory (
The following instructions describe how to set your
GOPATH. Refer to
the official Go documentation for more details:
- On Mac OS X and Linux Set the
GOPATHenvironment variable for your workspace:
- Also set the
GOPATH/binvariable, which is used to run compiled Go programs.
- Since we’ll be doing a bunch of coding in Go, you might want to add
the following to your
export GOROOT=/usr/local/go export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
Install Go vendor tool¶
Go vendor is a tool for managing Go packages and their dependencies.
This tool will copy the dependent packages to the project’s
directory, and record their versions in a file named
go get -u github.com/kardianos/govendor
Test Go vendor Installation¶
To verify you setup govendor properly, please make sure govendor version information displays correctly.
At the command prompt, type the following command and make sure you see govendor version information:
$ govendor --version v1.0.9
Install Contract Compiler(Optional)¶
Hyperchain supports Smart Contract which written in Solidity and then compiled into bytecode to be uploaded on the blockchain.
Given that we are writing in Solidity, we need to be sure that we have
installed contract compiler named
solc for compiling.
We’ve provided some general installers for some platforms in our source
code, you can use them to install
solc quickly, you can also refer
to the official site - Installing