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.

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