2017-09-18 16:42:24 -04:00
Install Tendermint
==================
2018-05-31 15:29:44 -04:00
The fastest and easiest way to install the `` tendermint `` binary
is to run `this script <https://github.com/tendermint/tendermint/blob/develop/scripts/install_tendermint.sh> `__ on a fresh Ubuntu instance. Read the comments / instructions carefully (i.e., reset your terminal after running the script).
2017-09-18 16:42:24 -04:00
From Binary
-----------
2018-05-18 10:12:52 -04:00
To download pre-built binaries, see the `releases page <https://github.com/tendermint/tendermint/releases> `__ .
2017-09-01 21:04:34 -04:00
2017-09-18 16:42:24 -04:00
From Source
-----------
2018-05-18 10:12:52 -04:00
You'll need `` go `` `installed <https://golang.org/doc/install> `__ and the required
`environment variables set <https://github.com/tendermint/tendermint/wiki/Setting-GOPATH> `__
2017-09-01 21:04:34 -04:00
2017-09-18 16:42:24 -04:00
Get Source Code
^^^^^^^^^^^^^^^
2017-09-01 21:04:34 -04:00
::
2018-05-18 10:12:52 -04:00
mkdir -p $GOPATH/src/github.com/tendermint
cd $GOPATH/src/github.com/tendermint
git clone https://github.com/tendermint/tendermint.git
cd tendermint
2017-09-01 21:04:34 -04:00
2018-05-18 10:12:52 -04:00
Get Tools & Dependencies
^^^^^^^^^^^^^^^^^^^^^^^^
2017-09-01 21:04:34 -04:00
::
2018-02-27 17:20:56 +04:00
make get_tools
2018-05-18 10:12:52 -04:00
make get_vendor_deps
2017-09-01 21:04:34 -04:00
2018-05-18 10:12:52 -04:00
Compile
^^^^^^^
2017-09-01 21:04:34 -04:00
::
2018-02-27 17:20:56 +04:00
make install
2017-09-01 21:04:34 -04:00
2018-05-18 10:12:52 -04:00
to put the binary in `` $GOPATH/bin `` or use:
::
make build
2017-09-01 21:04:34 -04:00
2018-05-18 10:12:52 -04:00
to put the binary in `` ./build `` .
The latest `` tendermint version `` is now installed.
2017-09-01 21:04:34 -04:00
Reinstall
2017-09-18 16:42:24 -04:00
---------
2017-09-01 21:04:34 -04:00
If you already have Tendermint installed, and you make updates, simply
::
cd $GOPATH/src/github.com/tendermint/tendermint
2018-02-27 17:20:56 +04:00
make install
2017-09-01 21:04:34 -04:00
To upgrade, there are a few options:
- set a new `` $GOPATH `` and run
`` go get github.com/tendermint/tendermint/cmd/tendermint `` . This
makes a fresh copy of everything for the new version.
- run `` go get -u github.com/tendermint/tendermint/cmd/tendermint `` ,
where the `` -u `` fetches the latest updates for the repository and
its dependencies
- fetch and checkout the latest master branch in
`` $GOPATH/src/github.com/tendermint/tendermint `` , and then run
2018-02-27 17:20:56 +04:00
`` make get_vendor_deps && make install `` as above.
2017-09-01 21:04:34 -04:00
Note the first two options should usually work, but may fail. If they
2018-02-27 17:20:56 +04:00
do, use `` dep `` , as above:
2017-09-01 21:04:34 -04:00
::
cd $GOPATH/src/github.com/tendermint/tendermint
2018-02-27 17:20:56 +04:00
make get_vendor_deps
make install
2017-09-01 21:04:34 -04:00
2018-02-27 17:20:56 +04:00
Since the third option just uses `` dep `` right away, it should always
2017-09-01 21:04:34 -04:00
work.
Run
2017-09-18 16:42:24 -04:00
^^^
2017-09-01 21:04:34 -04:00
To start a one-node blockchain with a simple in-process application:
::
tendermint init
2018-02-27 14:01:10 +00:00
tendermint node --proxy_app=kvstore