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.

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