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.

57 lines
1.6 KiB

  1. # Install Go
  2. [Install Go, set the `GOPATH`, and put `GOPATH/bin` on your `PATH`](https://github.com/tendermint/tendermint/wiki/Setting-GOPATH).
  3. # Install Tendermint
  4. You should be able to install the latest with a simple `go get -u github.com/tendermint/tendermint/cmd/tendermint`.
  5. The `-u` makes sure all dependencies are updated as well.
  6. Run `tendermint version` and `tendermint --help`.
  7. If the install falied, see [vendored dependencies below](#vendored-dependencies).
  8. To start a one-node blockchain with a simple in-process application:
  9. ```
  10. tendermint init
  11. tendermint node --proxy_app=dummy
  12. ```
  13. See the [application developers guide](https://github.com/tendermint/tendermint/wiki/Application-Developers) for more details on building and running applications.
  14. ## Vendored dependencies
  15. If the `go get` failed, updated dependencies may have broken the build.
  16. Install the correct version of each dependency using `glide`.
  17. Fist, install `glide`:
  18. ```
  19. go get github.com/Masterminds/glide
  20. ```
  21. Now, fetch the dependencies and install them with `glide` and `go`:
  22. ```
  23. cd $GOPATH/src/github.com/tendermint/tendermint
  24. glide install
  25. go install ./cmd/tendermint
  26. ```
  27. Sometimes `glide install` is painfully slow. Hang in there champ.
  28. The latest Tendermint Core version is now installed. Check by running `tendermint version`.
  29. ## Troubleshooting
  30. If `go get` failing bothers you, fetch the code using `git`:
  31. ```
  32. mkdir -p $GOPATH/src/github.com/tendermint
  33. git clone https://github.com/tendermint/tendermint $GOPATH/src/github.com/tendermint/tendermint
  34. cd $GOPATH/src/github.com/tendermint/tendermint
  35. glide install
  36. go install ./cmd/tendermint
  37. ```