From 728286f4007b15797da8b128b7e68d12ce619771 Mon Sep 17 00:00:00 2001 From: Benjamin Bollen <ben@monax.io> Date: Thu, 20 Oct 2016 15:00:35 +0200 Subject: [PATCH] readme: quick correction to build instructions --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 635c7efa..ffae3fd0 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,20 @@ See the [eris-db documentation](https://monax.io/docs/documentation/db/) for mor `eris-db` is intended to be used by the `eris chains` command via [eris-cli](https://monax.io/docs/documentation/cli/latest/eris_chains). Available commands such as `make | start | stop | logs | inspect | update` are used for chain lifecycle management. ### For Developers +Dependency management for eris-db is managed with [glide](github.com/Masterminds/glide), and you can build eris-db from source by following 1. [Install go](https://golang.org/doc/install) 2. Ensure you have `gmp` installed (`sudo apt-get install libgmp3-dev || brew install gmp`) -3. `go get github.com/eris-ltd/eris-db/cmd/eris-db` +3. and execute following commands in a terminal: +``` +go get github.com/Masterminds/glide +go get -d github.com/eris-ltd/eris-db +REPO=$($GOPATH/src/github.com/eris-ltd/eris-db) +cd $REPO && glide install +cd $REPO/cmd/eris-db && go install``` -To run `eris-db`, just type `$ eris-db serve --work-dir <path to chain directory>` +To run `eris-db`, just type `$ eris-db serve --work-dir <path to chain directory>`, where the chain directory needs to contain the configuration files as generated by `eris chains make`. This will start the node using the provided folder as working dir. If the path is omitted it defaults to `~/.erisdb` -- GitLab