cosmos-sdk/docs/sdk/install.rst

49 lines
854 B
ReStructuredText
Raw Normal View History

2018-02-02 16:09:08 -08:00
Install
=======
2018-04-11 07:47:55 -07:00
Cosmos SDK can be installed to
2018-04-11 08:55:22 -07:00
``$GOPATH/src/github.com/cosmos/cosmos-sdk`` like a normal Go program:
2018-02-02 16:09:08 -08:00
::
2018-04-11 07:47:55 -07:00
go get github.com/cosmos/cosmos-sdk
2018-02-02 16:09:08 -08:00
If the dependencies have been updated with breaking changes, or if
2018-02-25 10:12:15 -08:00
another branch is required, ``dep`` is used for dependency management.
2018-02-02 16:09:08 -08:00
Thus, assuming you've already run ``go get`` or otherwise cloned the
repo, the correct way to install is:
::
cd $GOPATH/src/github.com/cosmos/cosmos-sdk
2018-04-11 07:47:55 -07:00
make get_vendor_deps
make install
make install_examples
2018-02-02 16:09:08 -08:00
2018-04-11 07:47:55 -07:00
This will install ``gaiad`` and ``gaiacli`` and four example binaries:
``basecoind``, ``basecli``, ``democoind``, and ``democli``.
2018-04-11 08:44:44 -07:00
Verify that everything is OK by running:
::
gaiad version
you should see:
::
0.15.0-rc1-9d90c6b
then with:
::
2018-04-19 09:14:06 -07:00
gaiacli version
2018-04-11 08:44:44 -07:00
you should see:
::
0.15.0-rc1-9d90c6b