2022-11-29 20:22:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# install build dependencies
|
|
|
|
sudo apt-get install -y libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
|
|
|
|
|
|
|
|
# get rocksdb sources
|
|
|
|
git clone https://github.com/facebook/rocksdb.git /home/runner/rocksdb
|
|
|
|
|
2023-11-08 22:06:03 +00:00
|
|
|
cd /home/runner/rocksdb || exit 1
|
2022-11-29 20:22:48 +00:00
|
|
|
|
2023-04-05 21:56:13 +00:00
|
|
|
git checkout "$ROCKSDB_VERSION"
|
2022-11-29 20:22:48 +00:00
|
|
|
|
|
|
|
# install rocksdb locally
|
2023-11-08 22:06:03 +00:00
|
|
|
sudo make -j "$(nproc --all)" install-shared && sudo ldconfig
|