-
-
Save clemensgg/907de16baa203946633ddca462cbf597 to your computer and use it in GitHub Desktop.
Install RocksDB on Ubuntu 20.04 (Focal Fossa)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install dependencies, create temp dir | |
sudo apt-get install -y libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
pushd /tmp | |
# clone & checkout | |
git clone https://github.com/facebook/rocksdb.git && cd rocksdb | |
git checkout v7.4.5 | |
# install production mode | |
export CXXFLAGS='-Wno-error=deprecated-copy -Wno-error=pessimizing-move -Wno-error=class-memaccess' | |
sudo make shared_lib | |
sudo make install-shared INSTALL_PATH=/usr | |
# clean temp | |
popd | |
rm -rf /tmp/rocksdb | |
# export env vars | |
sudo echo "export LD_LIBRARY_PATH=/usr/local/lib" >> $HOME/.bashrc | |
source $HOME/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment