You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
1.9 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. Install Tendermint
  2. ==================
  3. From Binary
  4. -----------
  5. To download pre-built binaries, see the `releases page <https://github.com/tendermint/tendermint/releases>`__.
  6. From Source
  7. -----------
  8. You'll need ``go`` `installed <https://golang.org/doc/install>`__ and the required
  9. `environment variables set <https://github.com/tendermint/tendermint/wiki/Setting-GOPATH>`__
  10. Get Source Code
  11. ^^^^^^^^^^^^^^^
  12. ::
  13. mkdir -p $GOPATH/src/github.com/tendermint
  14. cd $GOPATH/src/github.com/tendermint
  15. git clone https://github.com/tendermint/tendermint.git
  16. cd tendermint
  17. Get Tools & Dependencies
  18. ^^^^^^^^^^^^^^^^^^^^^^^^
  19. ::
  20. make get_tools
  21. make get_vendor_deps
  22. Compile
  23. ^^^^^^^
  24. ::
  25. make install
  26. to put the binary in ``$GOPATH/bin`` or use:
  27. ::
  28. make build
  29. to put the binary in ``./build``.
  30. The latest ``tendermint version`` is now installed.
  31. Reinstall
  32. ---------
  33. If you already have Tendermint installed, and you make updates, simply
  34. ::
  35. cd $GOPATH/src/github.com/tendermint/tendermint
  36. make install
  37. To upgrade, there are a few options:
  38. - set a new ``$GOPATH`` and run
  39. ``go get github.com/tendermint/tendermint/cmd/tendermint``. This
  40. makes a fresh copy of everything for the new version.
  41. - run ``go get -u github.com/tendermint/tendermint/cmd/tendermint``,
  42. where the ``-u`` fetches the latest updates for the repository and
  43. its dependencies
  44. - fetch and checkout the latest master branch in
  45. ``$GOPATH/src/github.com/tendermint/tendermint``, and then run
  46. ``make get_vendor_deps && make install`` as above.
  47. Note the first two options should usually work, but may fail. If they
  48. do, use ``dep``, as above:
  49. ::
  50. cd $GOPATH/src/github.com/tendermint/tendermint
  51. make get_vendor_deps
  52. make install
  53. Since the third option just uses ``dep`` right away, it should always
  54. work.
  55. Run
  56. ^^^
  57. To start a one-node blockchain with a simple in-process application:
  58. ::
  59. tendermint init
  60. tendermint node --proxy_app=kvstore