Tendermint---Ubuntu under the source installation but it took a week.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.