1, GO environment preparation
①, download go installation package, website: https://www.golangtc.com/download (Baidu Cloud Disk: Link: Https://pan.baidu.com/s/1-js-fHcksSsBlAfa0lUOsQ Password: qn23), my Baidu cloud disk inside has 1.9.2 and 1.10.22 versions of.
②, download it and drag it directly to Ubuntu or download it directly from Ubuntu. Then perform the decompression command:
Tar XF go1.9.2.linux-amd64.tar.gz &&sudo mkdir-p/usr/local/&&sudo mv Go/usr/local/go
③, set path path:
$sudo gedit (or vim)/etc/profile
Add the following at the end of the file
Export path= $PATH:/usr/local/go/bin
$source/etc/profile
④, perform the test to see if the installation is successful. The installation succeeds as shown.
2. Create a directory and Gopath
$ mkdir Goapps
$ echo "Export Gopath=/root/goapps" >>~/.profile
$ echo "Export path=\ $PATH: \ $GOPATH/bin" >>~/.profile
$source ~/.profile
3, download Tendermint source code.
$mkdir-P/goapps/src/github.com/tendermint
$ cd/goapps/src/github.com/tendermint
$ git clone https://github.com/tendermint/tendermint.git
$ make Get_tools
$make Get_vendor_deps
$make Install
$ RM-RF ~/.tendermint
$ tendermint Init
$ tendermint Node--proxy_app=kvstore
The result of the last run is as follows:
Special Note: You need to use go get-u github.com/golang/dep/cmd/dep and go get-u gopkg.in/alecthomas/if DEP and Gometalinter.v2 are not installed under Ubuntu GOMETALINTER.V2 command installation. is automatically downloaded to the following path. Run the DEP command. If it fails, copy the DEP file and gometalinter.v2 under the/goapps/bin path to/usr/local/go/bin. This is important, and then try to use the DEP command to see if there's an error, and it works fine. It took me three days to know.