Skip to content

Commit c8e6615

Browse files
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 <[email protected]>
1 parent e8b1513 commit c8e6615

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

docs/dev-setup/build.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,21 @@ First, install Docker, as described [here](https://docs.docker.com/engine/instal
178178
The database by default writes to /var/hyperledger. You can override this in the `core.yaml` configuration file, under `peer.fileSystemPath`.
179179

180180
```
181-
brew install go rocksdb snappy gnu-tar # For RocksDB version 4.1, you can compile your own, as described earlier
181+
brew install go rocksdb snappy gnu-tar
182+
# For RocksDB version 4.1, you need to compile your own locally
183+
cd /tmp
184+
git clone https://github.com/facebook/rocksdb.git
185+
cd rocksdb
186+
git checkout v4.1
187+
PORTABLE=1 make shared_lib
188+
INSTALL_PATH=/usr/local make install-shared
182189
183-
# You will need the following two for every shell you want to use
190+
# You will need the following two lines for every shell you want to use
184191
eval $(docker-machine env)
185192
export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
186193
187194
cd $GOPATH/src/github.com/hyperledger/fabric
188-
make peer
195+
make all
189196
```
190197

191198
## Configuration
@@ -198,7 +205,7 @@ There is a **core.yaml** file that contains the configuration for the peer proce
198205

199206
## Logging
200207

201-
Logging utilizes the [go-logging](https://github.com/op/go-logging) library.
208+
Logging utilizes the [go-logging](https://github.com/op/go-logging) library.
202209

203210
The available log levels in order of increasing verbosity are: *CRITICAL | ERROR | WARNING | NOTICE | INFO | DEBUG*
204211

0 commit comments

Comments
 (0)