2017-02-03 18:17:11 -08:00
|
|
|
# Install
|
|
|
|
|
2017-06-28 04:21:14 -07:00
|
|
|
If you aren't used to compile go programs and just want the released
|
|
|
|
version of the code, please head to our [downloads](https://tendermint.com/download)
|
|
|
|
page to get a pre-compiled binary for your platform.
|
|
|
|
|
2017-02-10 13:40:20 -08:00
|
|
|
On a good day, basecoin can be installed like a normal Go program:
|
|
|
|
|
|
|
|
```
|
2017-06-19 06:13:13 -07:00
|
|
|
go get -u github.com/tendermint/basecoin/cmd/...
|
2017-02-10 13:40:20 -08:00
|
|
|
```
|
|
|
|
|
|
|
|
In some cases, if that fails, or if another branch is required,
|
|
|
|
we use `glide` for dependency management.
|
2017-03-13 17:24:23 -07:00
|
|
|
Thus, assuming you've already run `go get` or otherwise cloned the repo,
|
|
|
|
the correct way to install is:
|
2017-02-03 18:17:11 -08:00
|
|
|
|
|
|
|
```
|
|
|
|
cd $GOPATH/src/github.com/tendermint/basecoin
|
2017-03-23 16:39:23 -07:00
|
|
|
git pull origin master
|
2017-06-18 16:01:54 -07:00
|
|
|
make all
|
2017-02-03 18:17:11 -08:00
|
|
|
```
|
|
|
|
|
|
|
|
This will create the `basecoin` binary in `$GOPATH/bin`.
|
2017-06-28 04:21:14 -07:00
|
|
|
`make all` implies `make get_vendor_deps` and uses `glide` to install the
|
|
|
|
correct version of all dependencies. It also tests the code, including
|
|
|
|
some cli tests to make sure your binary behaves properly.
|
2017-03-13 17:24:23 -07:00
|
|
|
|
2017-06-28 04:21:14 -07:00
|
|
|
If you need another branch, make sure to run `git checkout <branch>`
|
|
|
|
before `make all`. And if you switch branches a lot, especially
|
|
|
|
touching other tendermint repos, you may need to `make fresh` sometimes
|
|
|
|
so glide doesn't get confused with all the branches and versions lying around.
|
2017-02-03 18:17:11 -08:00
|
|
|
|