Update manual build instructions

This commit is contained in:
Martin Boehm 2021-12-17 11:57:04 +01:00
parent 0c82bbdcbe
commit 8df92e9db4

View File

@ -183,13 +183,13 @@ Configuration is described in [config.md](/docs/config.md).
## Manual build ## Manual build
Instructions below are focused on Debian 9 (Stretch). If you want to use another Linux distribution or operating system Instructions below are focused on Debian 9 (Stretch) and 10 (Buster). If you want to use another Linux distribution or operating system
like macOS or Windows, please read instructions specific for each project. like macOS or Windows, please read instructions specific for each project.
Setup go environment: Setup go environment (use newer version of go as available)
``` ```
wget https://golang.org/dl/go1.14.2.linux-amd64.tar.gz && tar xf go1.14.2.linux-amd64.tar.gz wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz && tar xf go1.17.1.linux-amd64.tar.gz
sudo mv go /opt/go sudo mv go /opt/go
sudo ln -s /opt/go/bin/go /usr/bin/go sudo ln -s /opt/go/bin/go /usr/bin/go
# see `go help gopath` for details # see `go help gopath` for details
@ -206,11 +206,11 @@ sudo apt-get update && sudo apt-get install -y \
build-essential git wget pkg-config libzmq3-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev build-essential git wget pkg-config libzmq3-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev
git clone https://github.com/facebook/rocksdb.git git clone https://github.com/facebook/rocksdb.git
cd rocksdb cd rocksdb
git checkout v6.8.1 git checkout v6.22.1
CFLAGS=-fPIC CXXFLAGS=-fPIC make release CFLAGS=-fPIC CXXFLAGS=-fPIC make release
``` ```
Setup variables for gorocksdb: https://github.com/tecbot/gorocksdb Setup variables for gorocksdb
``` ```
export CGO_CFLAGS="-I/path/to/rocksdb/include" export CGO_CFLAGS="-I/path/to/rocksdb/include"