Last active
August 29, 2015 14:26
-
-
Save toolslive/22958251b056dcb3131a to your computer and use it in GitHub Desktop.
helper script for orocksdb (3.12)
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
#!/usr/bin/env bash | |
set -x | |
echo $(gcc --version) | |
VERSION=3.12 | |
shared_lib_file="/usr/local/lib/librocksdb.so.${VERSION}" | |
if [ -e $shared_lib_file ]; then | |
echo "$shared_lib_file exists" | |
else | |
echo "cloning, building, installing rocksdb" | |
git clone https://github.com/facebook/rocksdb/ | |
cd rocksdb | |
git checkout tags/rocksdb-${VERSION} | |
CXX=g++-4.8 make shared_lib | |
sudo make uninstall | |
sudo make install-shared | |
sudo ldconfig | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment