Skip to content

Commit

Permalink
Fix FAB-640 doc to build locally on MacOSX
Browse files Browse the repository at this point in the history
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 <chrisfer@us.ibm.com>
  • Loading branch information
christo4ferris committed Oct 10, 2016
1 parent e8b1513 commit c8e6615
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions docs/dev-setup/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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*

Expand Down

0 comments on commit c8e6615

Please sign in to comment.