From c8e661520ba96fde18c27f6fed053f532c909c37 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Mon, 10 Oct 2016 14:14:26 -0400 Subject: [PATCH] Fix FAB-640 doc to build locally on MacOSX Fix FAB-640 doc to build locally on MacOSX by adding instructions to compile 4.1 of RocksDB locally Change-Id: I1f67b898410245e872a93c3d382c17b5fe686465 Signed-off-by: Christopher Ferris --- docs/dev-setup/build.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/dev-setup/build.md b/docs/dev-setup/build.md index 642eaf79ec2..90b0958ed41 100644 --- a/docs/dev-setup/build.md +++ b/docs/dev-setup/build.md @@ -178,14 +178,21 @@ First, install Docker, as described [here](https://docs.docker.com/engine/instal The database by default writes to /var/hyperledger. You can override this in the `core.yaml` configuration file, under `peer.fileSystemPath`. ``` -brew install go rocksdb snappy gnu-tar # For RocksDB version 4.1, you can compile your own, as described earlier +brew install go rocksdb snappy gnu-tar +# For RocksDB version 4.1, you need to compile your own locally +cd /tmp +git clone https://github.com/facebook/rocksdb.git +cd rocksdb +git checkout v4.1 +PORTABLE=1 make shared_lib +INSTALL_PATH=/usr/local make install-shared -# You will need the following two for every shell you want to use +# You will need the following two lines for every shell you want to use eval $(docker-machine env) export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" cd $GOPATH/src/github.com/hyperledger/fabric -make peer +make all ``` ## Configuration @@ -198,7 +205,7 @@ There is a **core.yaml** file that contains the configuration for the peer proce ## Logging -Logging utilizes the [go-logging](https://github.com/op/go-logging) library. +Logging utilizes the [go-logging](https://github.com/op/go-logging) library. The available log levels in order of increasing verbosity are: *CRITICAL | ERROR | WARNING | NOTICE | INFO | DEBUG*