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.

76 lines
1.7 KiB

  1. # Install Tendermint
  2. The fastest and easiest way to install the `tendermint` binary
  3. is to run [this script](https://github.com/tendermint/tendermint/blob/develop/scripts/install/install_tendermint_ubuntu.sh) on
  4. a fresh Ubuntu instance,
  5. or [this script](https://github.com/tendermint/tendermint/blob/develop/scripts/install/install_tendermint_bsd.sh)
  6. on a fresh FreeBSD instance. Read the comments / instructions carefully (i.e., reset your terminal after running the script,
  7. make sure your okay with the network connections being made).
  8. ## From Binary
  9. To download pre-built binaries, see the [releases page](https://github.com/tendermint/tendermint/releases).
  10. ## From Source
  11. You'll need `go` [installed](https://golang.org/doc/install) and the required
  12. [environment variables set](https://github.com/tendermint/tendermint/wiki/Setting-GOPATH)
  13. ### Get Source Code
  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. ```
  20. ### Get Tools & Dependencies
  21. ```
  22. make get_tools
  23. make get_vendor_deps
  24. ```
  25. ### Compile
  26. ```
  27. make install
  28. ```
  29. to put the binary in `$GOPATH/bin` or use:
  30. ```
  31. make build
  32. ```
  33. to put the binary in `./build`.
  34. The latest `tendermint version` is now installed.
  35. ## Reinstall
  36. If you already have Tendermint installed, and you make updates, simply
  37. ```
  38. cd $GOPATH/src/github.com/tendermint/tendermint
  39. make install
  40. ```
  41. To upgrade, run
  42. ```
  43. cd $GOPATH/src/github.com/tendermint/tendermint
  44. git pull origin master
  45. make get_vendor_deps
  46. make install
  47. ```
  48. ## Run
  49. To start a one-node blockchain with a simple in-process application:
  50. ```
  51. tendermint init
  52. tendermint node --proxy_app=kvstore
  53. ```