go, maybe dep, and the Tendermint source code.
Make sure you have installed Go and
GOPATH. You should also put
GOPATH/bin on your
Get Source Code¶
You should be able to install the latest with a simple
go get github.com/tendermint/tendermint/cmd/tendermint
tendermint --help and
tendermint version to ensure your
If the installation failed, a dependency may have been updated and become
incompatible with the latest Tendermint master branch. We solve this
dep tool for dependency management.
cd $GOPATH/src/github.com/tendermint/tendermint make get_tools
Now we can fetch the correct versions of each dependency by running:
make get_vendor_deps make install
Note that even though
go get originally failed, the repository was
still cloned to the correct location in the
The latest Tendermint Core version is now installed.
If you already have Tendermint installed, and you make updates, simply
cd $GOPATH/src/github.com/tendermint/tendermint make install
To upgrade, there are a few options:
- set a new
go get github.com/tendermint/tendermint/cmd/tendermint. This makes a fresh copy of everything for the new version.
go get -u github.com/tendermint/tendermint/cmd/tendermint, where the
-ufetches the latest updates for the repository and its dependencies
- fetch and checkout the latest master branch in
$GOPATH/src/github.com/tendermint/tendermint, and then run
make get_vendor_deps && make installas above.
Note the first two options should usually work, but may fail. If they
dep, as above:
cd $GOPATH/src/github.com/tendermint/tendermint make get_vendor_deps make install
Since the third option just uses
dep right away, it should always
go get failing bothers you, fetch the code using
mkdir -p $GOPATH/src/github.com/tendermint git clone https://github.com/tendermint/tendermint $GOPATH/src/github.com/tendermint/tendermint cd $GOPATH/src/github.com/tendermint/tendermint make get_tools make get_vendor_deps make install
To start a one-node blockchain with a simple in-process application:
tendermint init tendermint node --proxy_app=kvstore