tendermint/docs/install.rst

100 lines
2.5 KiB
ReStructuredText
Raw Normal View History

2017-09-18 13:42:24 -07:00
Install Tendermint
==================
2018-05-31 12:29:44 -07:00
The fastest and easiest way to install the ``tendermint`` binary
2018-06-05 20:28:57 -07:00
is to run `this script <https://github.com/tendermint/tendermint/blob/develop/scripts/install/install_tendermint_ubuntu.sh>`__ on
a fresh Ubuntu instance,
or `this script <https://github.com/tendermint/tendermint/blob/develop/scripts/install/install_tendermint_bsd.sh>`__
on a fresh FreeBSD instance. Read the comments / instructions carefully (i.e., reset your terminal after running the script,
make sure your okay with the network connections being made).
2018-05-31 12:29:44 -07:00
2017-09-18 13:42:24 -07:00
From Binary
-----------
To download pre-built binaries, see the `releases page <https://github.com/tendermint/tendermint/releases>`__.
2017-09-01 18:04:34 -07:00
2017-09-18 13:42:24 -07:00
From Source
-----------
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 18:04:34 -07:00
2017-09-18 13:42:24 -07:00
Get Source Code
^^^^^^^^^^^^^^^
2017-09-01 18:04:34 -07: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 18:04:34 -07:00
Get Tools & Dependencies
^^^^^^^^^^^^^^^^^^^^^^^^
2017-09-01 18:04:34 -07:00
::
2018-02-27 05:20:56 -08:00
make get_tools
make get_vendor_deps
2017-09-01 18:04:34 -07:00
Compile
^^^^^^^
2017-09-01 18:04:34 -07:00
::
2018-02-27 05:20:56 -08:00
make install
2017-09-01 18:04:34 -07:00
to put the binary in ``$GOPATH/bin`` or use:
::
make build
2017-09-01 18:04:34 -07:00
to put the binary in ``./build``.
The latest ``tendermint version`` is now installed.
2017-09-01 18:04:34 -07:00
Reinstall
2017-09-18 13:42:24 -07:00
---------
2017-09-01 18:04:34 -07:00
If you already have Tendermint installed, and you make updates, simply
::
cd $GOPATH/src/github.com/tendermint/tendermint
2018-02-27 05:20:56 -08:00
make install
2017-09-01 18:04:34 -07: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 05:20:56 -08:00
``make get_vendor_deps && make install`` as above.
2017-09-01 18:04:34 -07:00
Note the first two options should usually work, but may fail. If they
2018-02-27 05:20:56 -08:00
do, use ``dep``, as above:
2017-09-01 18:04:34 -07:00
::
cd $GOPATH/src/github.com/tendermint/tendermint
2018-02-27 05:20:56 -08:00
make get_vendor_deps
make install
2017-09-01 18:04:34 -07:00
2018-02-27 05:20:56 -08:00
Since the third option just uses ``dep`` right away, it should always
2017-09-01 18:04:34 -07:00
work.
Run
2017-09-18 13:42:24 -07:00
^^^
2017-09-01 18:04:34 -07:00
To start a one-node blockchain with a simple in-process application:
::
tendermint init
tendermint node --proxy_app=kvstore