Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
linxGnu authored Jan 1, 2021
1 parent f381c26 commit 9ada35b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,20 @@ Please follow this guide: https://github.com/facebook/rocksdb/blob/master/INSTAL

### Build

After that, you can install `grocksdb` using the following command:
After that, you can install and build `grocksdb` using the following commands:

CGO_CFLAGS="-I/path/to/rocksdb/include" \
CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lsnappy -llz4 -lzstd" \
go get -u github.com/linxGnu/grocksdb
```
go get -u github.com/linxGnu/grocksdb
CGO_CFLAGS="-I/path/to/rocksdb/include" \
CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lsnappy -llz4 -lzstd" \
go build
```

Or just:
```
go build // if prerequisites are in linker paths
```

## Usage

Expand Down

0 comments on commit 9ada35b

Please sign in to comment.